WP_Theme::parent()
Returns reference to the parent theme.
Method of the class: WP_Theme{}
No Hooks.
Return
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 6.7.1
public function parent() { return isset( $this->parent ) ? $this->parent : false; }