Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: submenu_file

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
39
40 /**
41  * Filters the file of an admin menu sub-menu item.
42  *
43  * @since 4.4.0
44  *
45  * @param string $submenu_file The submenu file.
46  * @param string $parent_file  The submenu item's parent file.
47  */
48 $submenu_file = apply_filters( 'submenu_file', $submenu_file, $parent_file );
49
50 get_admin_page_parent();
51
52 /**
53  * Display menu.
54  *
55  * @access private
56  * @since 2.7.0
57  *