parent_file WordPress Filter Hook
The parent_file Wordpress hook is used to set the parent file for a given screen. This can be used to override the default parent file for a given screen, or to set the parent file for a new custom screen.
apply_filters( 'parent_file', string $parent_file ) #
Filters the parent file of an admin menu sub-menu item.
Description
Allows plugins to move sub-menu items around.
Parameters
- $parent_file
(string)The parent file.
Source
File: wp-admin/menu-header.php
Changelog
Version | Description |
---|---|
MU (3.0.0) | Introduced. |