Switch language

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




is_child_theme [ WordPress Function ]

is_child_theme ( No parameters )
Returns:
  • (bool) true if a child theme is in use, false otherwise.
Defined at:



Whether a child theme is in use.

Source


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

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics