[wp-trac] [WordPress Trac] #14721: set_theme_mod() needs a filter

WordPress Trac noreply at wordpress.org
Wed Jan 16 20:59:34 UTC 2013


#14721: set_theme_mod() needs a filter
--------------------------+-----------------------------
 Reporter:  mikeschinkel  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Themes        |     Version:  3.0.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+-----------------------------
Changes (by ssmathias):

 * keywords:  needs-patch => has-patch


Comment:

 I've generated a patch for this ticket adding two new filters, and two new
 actions to the set_theme_mod function:

 {{{$value = apply_filters('set_theme_mod', $value, $name, $mods[ $name
 ]);}}}

 {{{$value = apply_filters("set_theme_mod_$name", $value, $mods[ $name
 ]);}}}

 {{{do_action('post_set_theme_mod', $mods, $name, $value);}}}

 {{{do_action("post_set_theme_mod_$name", $mods, $value);}}}

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


More information about the wp-trac mailing list