$page_hook
动作钩子
do_action( $page_hook )
- 定义位置
-
-
wp-admin/admin.php
, line 259
-
wp-admin/admin.php
- 引入
- 1.5.0
- 弃用
- –
Used to call the registered callback for a plugin screen.
This hook uses a dynamic hook name, $page_hook
, which refers to a mixture of plugin
page information including:
- The page type. If the plugin page is registered as a submenu page, such as for
Settings, the page type would be ‘settings’. Otherwise the type is ‘toplevel’. - A separator of ‘page‘.
- The plugin basename minus the file extension.
Together, the three parts form the $page_hook
. Citing the example above,
the hook name used would be ‘settings_page_pluginbasename’.
do_action( $page_hook );
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。