WordPress at a glance
function is not described

WP_Theme::parent() public WP 3.4.0

Returns reference to the parent theme.

{} It's a method of the class: WP_Theme{}

No Hooks.


WP_Theme|false. Parent theme, or false if the current theme is not a child theme.


$WP_Theme = new WP_Theme();


Since 3.4.0 Introduced.

Code of WP_Theme::parent() WP 5.7.2

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