wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



is_child_theme › WordPress Function

Od3.0.0
Przestarzałyn/a
is_child_theme ( Brak parametrów )
Powrót:
  • (bool) True if a child theme is in use, false otherwise.
Zdefiniowane na:
Codex:
Dziennik zmian:
  • 6.5.0

Whether a child theme is in use.



Źródło

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

	return $wp_stylesheet_path !== $wp_template_path;
}