WordPress at a glance

is_child_theme() WP 1.0

Whether a child theme is in use.

✈ 1 time = 0.00001s = speed of light | 50000 times = 0.01s = 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();

Code of is_child_theme: wp-includes/theme.php VER 5.0.1

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

Related Functions

From tag: Conditional tags (all)

More from category: Other Theme Functions

No comments
    Hello, !     Log In . Register