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.

Return

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

Usage

$WP_Theme = new WP_Theme();
$WP_Theme->parent();

Changelog

Since 3.4.0 Introduced.

Code of WP_Theme::parent() WP 5.6

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