1. 首页
  2. WordPress 函数手册

get_plugin_page_hookname()

get_plugin_page_hookname( string $plugin_page, string $parent_page )

获取插件的管理页的挂钩名称。
Gets the hook name for the administrative page of a plugin.

目录锚点:#参数#返回#源码


参数(Parameters)

参数 类型 必填 说明
$plugin_page (string) 必需 插件页的slug名称。
$parent_page (string) 必需 父菜单的slug名称(或标准WordPress管理页的文件名)。

返回(Return)

(string)插件页的挂钩名称。


源码(Source)


更新版本 源码位置 使用 被使用
1.5.0 wp-admin/includes/plugin.php:2006 4 1 function

get_plugin_page_hookname() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_plugin_page_hookname/