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:

Whether a child theme is in use.



Source

function is_child_theme() {
	return get_template_directory() !== get_stylesheet_directory();
}