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. Built from https://develop.svn.wordpress.org/trunk@34722 git-svn-id: http://core.svn.wordpress.org/trunk@34686 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
35631aeeeb
commit
145deeeada
|
@ -36,6 +36,16 @@ global $menu, $submenu, $parent_file;
|
|||
*/
|
||||
$parent_file = apply_filters( 'parent_file', $parent_file );
|
||||
|
||||
/**
|
||||
* Filter the file of an admin menu sub-menu item.
|
||||
*
|
||||
* @since 4.4.0
|
||||
*
|
||||
* @param string $submenu_file The submenu file.
|
||||
* @param string $parent_file The submenu item's parent file.
|
||||
*/
|
||||
$submenu_file = apply_filters( 'submenu_file', $submenu_file, $parent_file );
|
||||
|
||||
get_admin_page_parent();
|
||||
|
||||
/**
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-alpha-34721';
|
||||
$wp_version = '4.4-alpha-34722';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue