Set the parent information for the screen.
This is called in admin-header.php after the menu parent for the screen has been determined.
(string) (Required) The parent file of the screen. Typically the $parent_file global.
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 ); }
Version | Description |
---|---|
3.3.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_screen/set_parentage