WP_Screen::set_parentage
Sets the parent information for the screen.
This is called in admin-header.php after the menu parent for the screen has been determined.
Метод класса: WP_Screen{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WP_Screen = new WP_Screen(); $WP_Screen->set_parentage( $parent_file );
- $parent_file(строка) (обязательный)
- The parent file of the screen. Typically the
$parent_fileglobal.
Список изменений
| С версии 3.3.0 | Введена. |
Код WP_Screen::set_parentage() WP Screen::set parentage WP 7.0
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 );
}