[wp-trac] [WordPress Trac] #36452: customize_value should be passed $this

WordPress Trac noreply at wordpress.org
Mon Apr 18 22:19:29 UTC 2016


#36452: customize_value should be passed $this
---------------------------+-----------------------
 Reporter:  nwp_developer  |       Owner:
     Type:  defect (bug)   |      Status:  reopened
 Priority:  normal         |   Milestone:  4.6
Component:  Customize      |     Version:  4.4.2
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:
---------------------------+-----------------------

Comment (by westonruter):

 Replying to [comment:6 nwp_developer]:
 > Can anyone give me a start to how to use do_action(
 "customize_preview_{$this->type}", $this ) if I have a setting that's
 saved outside of wp_options?
 >
 > How would I handle the customizer iframe preview similar to how
 get_theme_mod() works? I can't use transport=>postMessage since content is
 dynamic.

 Please ask this question on the [https://wordpress.org/support/ support
 forums] or on the [http://wordpress.stackexchange.com/ WordPress Dev Stack
 Exchange].

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


More information about the wp-trac mailing list