WP_Theme::parent
Returns reference to the parent theme.
Method of the class: WP_Theme{}
No Hooks.
Returns
WP_Theme|false. Parent theme, or false if the active theme is not a child theme.
Usage
$WP_Theme = new WP_Theme(); $WP_Theme->parent();
Changelog
| Since 3.4.0 | Introduced. |
WP_Theme::parent() WP Theme::parent code WP 7.0
public function parent() {
return $this->parent ?? false;
}