_get_widget_id_base( string $id ): string

Retrieves the widget ID base value.


Parameters

$id string Required
Widget ID.

Top ↑

Return

string Widget ID base.


Top ↑

Source

File: wp-includes/widgets.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
2.8.0 Introduced.

Top ↑

User Contributed Notes

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