apply_filters( 'submenu_file', string $submenu_file, string $parent_file )
- Since
- 4.4.0
Filters the file of an admin menu sub-menu item.
Parameters
$parent_filestring- The submenu item's parent file.
Fired at · 1
wp-admin/menu-header.php:53file scope
Source
View on Trac ↗View on GitHub ↗
47<?php48 *49 * @since 4.4.050 *51 * @param string $submenu_file The submenu file.52 * @param string $parent_file The submenu item's parent file.53 */54$submenu_file = apply_filters( 'submenu_file', $submenu_file, $parent_file );55 56get_admin_page_parent();57 58/**59 * Display menu.60 *
History
Introduced in 4.4.0. Unchanged from 6.7.7 through 7.1.0.
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.0.4 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.