is_child_theme() WordPress Function

is_child_theme() is a function that checks whether the current theme is a child theme or not.

is_child_theme() #

Whether a child theme is in use.


Return

(bool) True if a child theme is in use, false otherwise.


Top ↑

Source

File: wp-includes/theme.php

function is_child_theme() {
	return ( TEMPLATEPATH !== STYLESHEETPATH );
}


Top ↑

Changelog

Changelog
VersionDescription
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More