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 |
---|---|
102 | $_wp_last_utility_menu = 60; // The index of the last top-level menu in the utility menu group |
103 |
|
104 | $menu[79] = array( '', 'read', '', '', 'wp-menu-separator-last' ); |
105 |
|
106 | // Back-compat for old top-levels |
107 | $_wp_real_parent_file['post.php'] = 'edit.php'; |
108 | $_wp_real_parent_file['post-new.php'] = 'edit.php'; |
109 | $_wp_real_parent_file['page-new.php'] = 'edit-pages.php'; |
110 |
|
111 | do_action('_admin_menu'); |
112 |
|
113 | // Create list of page plugin hook names. |
114 | foreach ($menu as $menu_page) { |
115 | $admin_page_hooks[$menu_page[2]] = sanitize_title($menu_page[0]); |
116 | } |
117 |
|
118 | $_wp_submenu_nopriv = array(); |
119 | $_wp_menu_nopriv = array(); |
120 | // Loop over submenus and remove pages for which the user does not have privs. |