Check for global variable $wp_customize
:
if ( empty ( $GLOBALS['wp_customize'] ) )
{
// show something
}
Update: in WordPress 4.0, you can use is_customize_preview()
.
Related Posts:
- Remove line breaks in wp_list_categories()?
- different tag different stylesheet
- Is there a way to display a menu using the ol tag instead of the default ul tag?
- Getting tagid from tagname
- Sort list of page templates a-z?
- How do I str_replace with template tag?
- How to modify template tags function?
- Template tags not working in the customizer preview
- edit_post_link returns blank
- Get list of body classes for X page?
- Use template tags in code snippets wordpress
- Misleading information in the Codex, how do they get away with it? [closed]
- How To extend WP_Customize_Control
- Manually set global $post vars with an ID, in order to use template tags
- Settings API vs Theme Customizer
- get_option() vs get_theme_mod(): Why is one slower?
- How do I remove a pre-existing customizer setting?
- Where is Customizer related data stored is the database?
- New WP_Customize API – how does it work under the hood?
- Echo author ID in author.php
- Link to specific Customizer section
- How do I implement the WordPress Iris picker into my plugin on the front-end?
- Add settings to menu items in the Customizer
- Customizer JS API
- Theme customizer – settings order
- How do I implement selective refresh with a customizer setting?
- Hook in wp.media to add a new tab
- Custom Image section in Customizer
- Get entered value of customiser field for live preview
- Is it Possible to Extend WP Customize JS Methods?
- How to create a theme customizer ‘sub’ panel?
- why doesn’t the_content() work in this {single-custom_post_type.php} page?
- Can a widget in the Customizer be “single-use” (i.e. disabled after 1 instance has been added)?
- On the category page, get the category object
- Adding a description to theme customizer controls
- Use default value of wp_customizer in theme_mod output?
- How to remove the Theme Customization Button from the dashboard and themes options page?
- Repeater field in Customizer
- wp.customize.bind ready event not fired
- When cropping a header image, retain meta data (i.e. name, description, etc.) from original image?
- Adjust the Device Preview sizes used in the WP 4.5 Customizer
- Is it possible ( or advisable) to allow open access to the new theme customizer for potential clients?
- How to get the clean permalink in a draft?
- How do I display a tag cloud under my post that only shows tags from that post?
- Making a Shortcode [NEXT] and [PREVIOUS] to place into specific posts for post navigation
- Add a dropdown to theme customizer
- Disable Visible Edit Shortcuts in the Customizer
- How to refresh WordPress Customizer panel upon entering a value
- WP Customizer – Prevent live preview
- Need help setting default setting value for radio button in theme customizer
- How to upload multiple images with WP_Customize_Media_Control
- Different customizer previewUrls per section
- SSL breaks customizer: page isn’t returned from ajax
- Theme Customization API and child themes
- How to remove Customize from admin menu bar after WP 4.3
- Is there any way to add placeholder for WordPress Customizer text input fields
- Changes in widget customizer not triggering ‘save and publish’
- Theme Customizer : how to create multiple-level panel
- Allow Shortcode in Theme Customizer
- Theme Customizer – Nested Sections?
- How to open the 404 page in the Theme Customizer preview?
- TinyMCE in customizer
- get_parent_theme_file_path vs. get_template_directory
- How to Add Customizer Setting in Child Theme
- Customizer Active Callback not working
- Is having multiple theme customizers for different pages possible?
- How WP_Customize_Background_Image_Control is supposed to work?
- Custom editable content for front page from Theme Customizer
- Looking for a way to load a function after customizer preview refresh complete
- How to customize a shortcode using the customizer
- Color Picker (iris) in widget – refresh when edited in Customizer
- How to refresh Theme Customizer after change color inside wpColorPicker?
- Can I create customizer setting that can handle plugin shortcode?
- Remove Customize Background and Header from Appearance admin menu without CSS or JS
- Widgets not displaying in theme customizer
- Editing the custom background CSS
- Way to check if we are in Theme Customizer mode? [duplicate]
- How to print the value of a custom control in the Customizer?
- How to execute conditional script when on new customize.php (Theme Customize) screen
- Add/remove controls dynamically based on other settings in Customizer
- Customizer JS API dynamically add sections and controls
- Get all registered wp theme customizer sections?
- Add custom background to div in home page
- Is the theme customizer slowing down my site?
- Trigger Customizer saving process with Javascript only
- Theme customizer – possible to disable Live Preview?
- Adding customizer styles with wp_add_inline_style
- Theme Customiser Image Control
- “You need a higher level of permission” after admin changing. Why?
- get_theme_mod doesn’t return the theme customizer preview’s new values in after_setup_theme hook
- Detecting WordPress Customizer Panel
- How do I handle the “WP_Customize_Cropped_Image_Control” callback?
- Allow anonymous user to access Themes Customizer
- Multisite get_home_url(); – Getting URL for current site
- How to show the real post date in a draft
- add_action customize_register not working
- Is it possible to get a theme customizer setting from wp.customize using jquery?
- Display custom_background outside wp_head()
- Appearance->Editor not visible
- Where to get the unsaved list of widgets in customizer?