WP_Theme::parent()publicWP 3.4.0

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() code WP 6.5.2

public function parent() {
	return isset( $this->parent ) ? $this->parent : false;
}