[wp-trac] [WordPress Trac] #23509: Conditional function that lets you know if your site is being viewed through the Customizer

WordPress Trac noreply at wordpress.org
Tue Feb 19 01:56:17 UTC 2013


#23509: Conditional function that lets you know if your site is being viewed
through the Customizer
-------------------------+------------------------------
 Reporter:  nathanrice   |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Appearance   |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  2nd-opinion  |
-------------------------+------------------------------
Changes (by SergeyBiryukov):

 * component:  Themes => Appearance


Comment:

 This seems to work for me:
 {{{
 global $wp_customize;
 if ( isset( $wp_customize ) ) {
         // ...
 }
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23509#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list