_get_widget_id_base( string $id )

Retrieves the widget ID base value.


Description Description


Parameters Parameters

$id

(string) (Required) Widget ID.


Top ↑

Return Return

(string) Widget ID base.


Top ↑

Source Source

File: wp-includes/widgets.php

function _get_widget_id_base( $id ) {
	return preg_replace( '/-[0-9]+$/', '', $id );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.8.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.