wpseek.com
WordPress开发者和主题制作者的搜索引擎



_get_widget_id_base › WordPress Function

Since2.8.0
已弃用n/a
_get_widget_id_base ( $id )
参数:
  • (string) $id Widget ID.
    Required: Yes
返回:
  • (string) Widget ID base.
定义在:
文档:

Retrieves the widget ID base value.



源码

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