原型
get_plugin_page_hook( string $plugin_page, string $parent_page )
参数
$plugin_page
(string)
(Required)
$parent_page
(string)
(Required)
返回值
(string|null)
源文件
路径:wp-admin/includes/plugin.php
<?php
...
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;
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/get_plugin_page_hook/