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



get_plugin_page_hook ›

Since2.3.0
已弃用n/a
get_plugin_page_hook ( $plugin_page, $parent_page )
参数: (2)
  • (string) $plugin_page The slug name of the plugin page.
    Required: Yes
  • (string) $parent_page The slug name for the parent menu (or the file name of a standard WordPress admin page).
    Required: Yes
返回:
  • (string|null) Hook attached to the plugin page, null otherwise.
定义在:
文档:

暂无描述



源码

function get_plugin_page_hook( $plugin_page, $parent_page ) {
	$hook = get_plugin_page_hookname( $plugin_page, $parent_page );
	if ( has_action( $hook ) ) {
		return $hook;
	} else {
		return null;
	}
}