Make WordPress Core

Changeset 26893


Ignore:
Timestamp:
01/02/2014 02:45:29 AM (10 years ago)
Author:
DrewAPicture
Message:

Inline documentation for hooks in wp-admin/menu-header.php.

Props piontkowski, kpdesign.
Fixes #26051.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/menu-header.php

    r26671 r26893  
    2020
    2121global $menu, $submenu, $parent_file; //For when admin-header is included from within a function.
    22 $parent_file = apply_filters("parent_file", $parent_file); // For plugins to move submenu tabs around.
     22
     23/**
     24 * Filter the parent file of an admin menu sub-menu item.
     25 *
     26 * Allows plugins to move sub-menu items around.
     27 *
     28 * @since MU
     29 *
     30 * @param string $parent_file The parent file.
     31 */
     32$parent_file = apply_filters( 'parent_file', $parent_file );
    2333
    2434get_admin_page_parent();
     
    196206
    197207_wp_menu_output( $menu, $submenu );
     208/**
     209 * Fires after the admin menu has been output.
     210 *
     211 * @since 2.5.0
     212 */
    198213do_action( 'adminmenu' );
    199214
Note: See TracChangeset for help on using the changeset viewer.