[wp-trac] [WordPress Trac] #33146: Add optional $name variable to theme_mod_$name Filter.

WordPress Trac noreply at wordpress.org
Mon Jul 27 19:20:47 UTC 2015


#33146: Add optional $name variable to theme_mod_$name Filter.
--------------------------+------------------------------
 Reporter:  clintstegman  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Themes        |     Version:  4.2.3
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  template
--------------------------+------------------------------

Comment (by obenland):

 Welcome clintstegman! :)

 Replying to [ticket:33146 clintstegman]:
 > I am making a plugin and using this filter:
 [https://codex.wordpress.org/Plugin_API/Filter_Reference/theme_mod_$name]
 > If I could access the name of the Theme Mod when the filter is applied,
 I could remove redundant code.

 You need to know the name of the theme mod to use that filter, hat keeps
 you from using that same name within the callback?

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


More information about the wp-trac mailing list