is_child_theme()

Whether a child theme is in use.


Return

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


Source

File: wp-includes/theme.php

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


Changelog

Changelog
Version Description
WP-3.0.0 Introduced.