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:48file scope
Source
View on Trac ↗View on GitHub ↗
42<?php43 *44 * @since 4.4.045 *46 * @param string $submenu_file The submenu file.47 * @param string $parent_file The submenu item's parent file.48 */49$submenu_file = apply_filters( 'submenu_file', $submenu_file, $parent_file );50 51get_admin_page_parent();52 53/**54 * Display menu.55 *
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 6.7.7 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.