wpseek.com
A WordPress-centric search engine for devs and theme authors



is_child_theme › WordPress Function

Since3.0.0
Deprecatedn/a
is_child_theme ( No parameters )
Returns:
  • (bool) True if a child theme is in use, false otherwise.
Defined at:
Codex:
Change Log:
  • 6.5.0

Whether a child theme is in use.



Source

function is_child_theme() {
	global $wp_stylesheet_path, $wp_template_path;

	return $wp_stylesheet_path !== $wp_template_path;
}