_get_widget_id_base( string $id )
Retrieves the widget ID base value.
Description Description
Parameters Parameters
- $id
-
(string) (Required) Widget ID.
Return Return
(string) Widget ID base.
Source Source
File: wp-includes/widgets.php
function _get_widget_id_base( $id ) { return preg_replace( '/-[0-9]+$/', '', $id ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |