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.
Contents
Parameters
- $submenu_file
(string)The submenu file.
- $parent_file
(string)The submenu item's parent file.
Source
File: wp-admin/menu-header.php
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |