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



load-{$plugin_page} › WordPress动作钩子

Since1.5.0
已弃用n/a
do_action( "load-{$plugin_page}" )
定义在:
文档:

Fires before a particular screen is loaded.

The load-* hook fires in a number of contexts. This hook is for plugin screens where the file to load is directly included, rather than the use of a function.

The dynamic portion of the hook name, $plugin_page, refers to the plugin basename.





源码

do_action( "load-{$plugin_page}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores