WordPress at Your Fingertips

is_child_theme() WP 1.0

Whether a child theme is in use.

1 time — 0.00001 sec (speed of light) | 50000 times — 0.01 sec (speed of light) | PHP 7.0.8, WP 4.6

No Hooks.

Return

true|false. True if a child theme is in use, false otherwise.

Usage

is_child_theme();

Changelog

Since 3.0.0 Introduced.

Code of is_child_theme() WP 5.8.1

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

Conditional tags (all)

Other Theme Functions

No comments
    Log In