WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/01/2015 12:22:37 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Add 'submenu_file' filter for the file of an admin menu sub-menu item.

This complements the 'parent_file' filter added in [12712].

Props swissspidy, kraftbj.
Fixes #24531.

File:
1 edited

Legend:

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

    r32946 r34722  
    3636 */
    3737$parent_file = apply_filters( 'parent_file', $parent_file );
     38
     39/**
     40 * Filter the file of an admin menu sub-menu item.
     41 *
     42 * @since 4.4.0
     43 *
     44 * @param string $submenu_file The submenu file.
     45 * @param string $parent_file  The submenu item's parent file.
     46 */
     47$submenu_file = apply_filters( 'submenu_file', $submenu_file, $parent_file );
    3848
    3949get_admin_page_parent();
Note: See TracChangeset for help on using the changeset viewer.