Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: load-{$page_hook}

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
78                     $query_string = $_SERVER[ 'QUERY_STRING' ];
79                else
80                     $query_string = 'page=' . $plugin_page;
81                wp_redirect( 'tools.php?' . $query_string );
82                exit;
83           }
84      }
85
86      if ( $page_hook ) {
87           do_action('load-' . $page_hook);
88           if (! isset($_GET['noheader']))
89                require_once(ABSPATH . 'wp-admin/admin-header.php');
90
91           do_action($page_hook);
92      } else {
93           if ( validate_file($plugin_page) ) {
94                wp_die(__('Invalid plugin page'));
95           }
96