Check for global variable $wp_customize
:
if ( empty ( $GLOBALS['wp_customize'] ) )
{
// show something
}
Update: in WordPress 4.0, you can use is_customize_preview()
.
Check for global variable $wp_customize
:
if ( empty ( $GLOBALS['wp_customize'] ) )
{
// show something
}
Update: in WordPress 4.0, you can use is_customize_preview()
.