is_child_theme

Whether a child theme is in use.

Description

is_child_theme(); 

Usage

  1. if ( !function_exists( 'is_child_theme' ) ) { 
  2. require_once ABSPATH . WPINC . '/theme.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = is_child_theme(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/theme.php  
  1. function is_child_theme() { 
  2. return ( TEMPLATEPATH !== STYLESHEETPATH );