WP_Theme::parent
Returns reference to the parent theme.
Метод класса: WP_Theme{}
Хуков нет.
Возвращает
WP_Theme|false
. Parent theme, or false if the active theme is not a child theme.
Использование
$WP_Theme = new WP_Theme(); $WP_Theme->parent();
Список изменений
С версии 3.4.0 | Введена. |
Код WP_Theme::parent() WP Theme::parent WP 6.8.1
public function parent() { return isset( $this->parent ) ? $this->parent : false; }