WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
47 |
|
48 | $submenu['themes.php'][5] = array(__('Themes'), 8, 'themes.php'); |
49 | $submenu['themes.php'][10] = array(__('Theme Editor'), 8, 'theme-editor.php'); |
50 |
|
51 | // Create list of page plugin hook names. |
52 | foreach ($menu as $menu_page) { |
53 | $admin_page_hooks[$menu_page[2]] = sanitize_title($menu_page[0]); |
54 | } |
55 |
|
56 | do_action('admin_menu', ''); |
57 | ksort($menu); // make it all pretty |
58 |
|
59 | if (! user_can_access_admin_page()) { |
60 | die( __('You do not have sufficient permissions to access this page.') ); |
61 | } |
62 |
|
63 | ?> |
64 |
|