_get_widget_id_base( string $id )

Retrieves the widget ID base value.


Parameters

$id

(Required) Widget ID.


Return

(string) Widget ID base.


Source

File: wp-includes/widgets.php

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


Changelog

Changelog
Version Description
WP-2.8.0 Introduced.