[wp-trac] [WordPress Trac] #29316: Need more filters for WP_Customize_Settings

WordPress Trac noreply at wordpress.org
Sun Aug 24 04:07:49 UTC 2014


#29316: Need more filters for WP_Customize_Settings
-------------------------+------------------------------
 Reporter:  dedepress    |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Customize    |     Version:  3.4
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by dedepress):

 There is filter by type in WP_Customize_Setting->update(), but filter by
 id_base in WP_Customize_Setting->value(). so, it's hard to modify
 something via same type of filters for updating and retrieving.

 I think

 {{{
 customize_value_$this->type, $this
 }}}


  is better than

 {{{
 customize_value_' . $this->id_data[ 'base' ], $this->default
 }}}


 assumed all of our setting ids is serialized, how to change value of each
 setting via the id_base filter? <tt>pre_option</tt> and
 </tt>pre_get_option</tt> can achieved my goal, but filter by type will
 make things easier.

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


More information about the wp-trac mailing list