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.


Top ↑

Parameters

$parent_file

(string)The parent file.


Top ↑

Source

File: wp-admin/menu-header.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
MU (3.0.0)Introduced.

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.