Plugin API/Action Reference/load-(page)

跳转至: 导航搜索

Runs when an administration menu page is loaded. This action is not usually added directly -- see Administration Menus for more details of how to add admin menus. If you do want to use it directly, the return value from add_options_page and similar functions gives you the (page) part of the action name.


add_action( 'admin_menu', 'test_load');
function test_load() {
   $hook = add_management_page( 'Test', 'Test', 8, 'testload');
       Result: load-tools_page_testload

Return to Plugin API/Action Reference