Inline documentation for hooks in wp-admin/menu-header.php.
Props piontkowski, kpdesign. Fixes #26051. git-svn-id: https://develop.svn.wordpress.org/trunk@26893 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ad6e9d6b7a
commit
74df859ebf
@ -19,7 +19,17 @@ $self = preg_replace('|^.*/plugins/|i', '', $self);
|
||||
$self = preg_replace('|^.*/mu-plugins/|i', '', $self);
|
||||
|
||||
global $menu, $submenu, $parent_file; //For when admin-header is included from within a function.
|
||||
$parent_file = apply_filters("parent_file", $parent_file); // For plugins to move submenu tabs around.
|
||||
|
||||
/**
|
||||
* Filter the parent file of an admin menu sub-menu item.
|
||||
*
|
||||
* Allows plugins to move sub-menu items around.
|
||||
*
|
||||
* @since MU
|
||||
*
|
||||
* @param string $parent_file The parent file.
|
||||
*/
|
||||
$parent_file = apply_filters( 'parent_file', $parent_file );
|
||||
|
||||
get_admin_page_parent();
|
||||
|
||||
@ -195,6 +205,11 @@ function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) {
|
||||
<?php
|
||||
|
||||
_wp_menu_output( $menu, $submenu );
|
||||
/**
|
||||
* Fires after the admin menu has been output.
|
||||
*
|
||||
* @since 2.5.0
|
||||
*/
|
||||
do_action( 'adminmenu' );
|
||||
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user