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

WordPress Trac noreply at wordpress.org
Mon Jul 27 20:36:20 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 clintstegman):

 Replying to [comment:3 ocean90]:
 > You could get the name with `$name = str_replace( 'theme_mod_', '',
 current_filter() );`.


 Thank you!!!

 Now i'm off to go clean up this mess I made. ; )

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


More information about the wp-trac mailing list