[wp-trac] [WordPress Trac] #57420: Add filter for wp_theme_get_element_class_name

WordPress Trac noreply at wordpress.org
Wed Jan 4 10:19:19 UTC 2023


#57420: Add filter for wp_theme_get_element_class_name
--------------------------+------------------------------
 Reporter:  benjgrolleau  |       Owner:  (none)
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:
 Severity:  minor         |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by benjgrolleau):

 I've made a mistake, there's a missing underscore the filter could be :

 {{{#!php
 <?php
 return apply_filters( "element_{$element}_class_name", $class_name );
 }}}

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


More information about the wp-trac mailing list