[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
Wed Jul 2 05:17:09 UTC 2014


#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:  4.0
Component:  Customize    |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  template
-------------------------+-----------------------

Comment (by celloexpressions):

 I would suggest either `is_customize`, `is_customizing` or
 `is_customize_preview`. It's the customize preview in the sense that
 you're previewing the changes you're making to different settings,
 regardless of whether or not it's a theme preview.

 In code, everything's `customize`, not `customizer`. However, considering
 the `customizer` as the thing and `customize` as the action,
 `is_customizing` could also make sense. But `is_customize_preview` is
 probably our best option here, all things considered.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/23509#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list