submenu_file WordPress Filter Hook

This hook is used to add a submenu page to an existing menu. The first parameter is the slug of the parent menu page. The second parameter is the page title. The third parameter is the menu title. The fourth parameter is the capability required to view the page. The fifth parameter is the slug of the page. The sixth parameter is the callback function used to render the page.

apply_filters( 'submenu_file', string $submenu_file, string $parent_file ) #

Filters the file of an admin menu sub-menu item.


Parameters

$submenu_file

(string)The submenu file.

$parent_file

(string)The submenu item's parent file.


Top ↑

Source

File: wp-admin/menu-header.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
4.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.