[wp-trac] [WordPress Trac] #30448: Customizer Manager/Settings classes do not provide public save method to use outside of customize.php

WordPress Trac noreply at wordpress.org
Tue Dec 30 19:42:28 UTC 2014


#30448: Customizer Manager/Settings classes do not provide public save method to
use outside of customize.php
-------------------------+------------------------------
 Reporter:  CrazyJaco    |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Customize    |     Version:  4.0
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:
-------------------------+------------------------------

Comment (by CrazyJaco):

 I was able to do what I needed with just this added filter rather than a
 whole new public function.

 Here is a snippet of code I used in a plugin to use this new filter.

 {{{
 add_filter( 'customize_save_value', array( $this,
 'filter_customize_save_value' ), 10, 2 );
 $wp_setting->save();
 remove_filter( 'customize_save_value', array( $this,
 'filter_customize_save_value' ) );
 }}}

 Feedback would be appreciated.

 Thank you.

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


More information about the wp-trac mailing list