WP_Screen::set_parentage( string $parent_file )

Set the parent information for the screen.

Description Description

This is called in admin-header.php after the menu parent for the screen has been determined.

Top ↑

Parameters Parameters


(string) (Required) The parent file of the screen. Typically the $parent_file global.

Top ↑

Source Source

File: wp-admin/includes/class-wp-screen.php

	public function set_parentage( $parent_file ) {
		$this->parent_file         = $parent_file;
		list( $this->parent_base ) = explode( '?', $parent_file );
		$this->parent_base         = str_replace( '.php', '', $this->parent_base );

Top ↑

Changelog Changelog

Version Description
3.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.