WPDev.one
Core Function
View Source on Trac ↗

get_admin_page_parent()

get_admin_page_parent( mixed $parent_page = '' )

Gets the parent file of the current admin page.

Parameters 1 required

Name / Type Description
string

$parent_page Optional. The slug name for the parent menu (or the file name of a standard WordPress admin page). Default empty string.

Required

Return Value

(string)
The parent file of the current admin page.

Function Information

Since Version
1.5.0
Source File
wp-admin/includes/plugin.php
Advertisement