[wp-trac] [WordPress Trac] #33146: Add optional $name variable to theme_mod_$name Filter.
WordPress Trac
noreply at wordpress.org
Mon Jul 27 20:28:52 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 ocean90):
You could get the name with `$name = str_replace( 'theme_mod_', '',
current_filter() );`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33146#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list