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

WordPress Trac noreply at wordpress.org
Wed Jan 18 10:44:07 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:  has-patch     |     Focuses:
--------------------------+------------------------------
Changes (by benjgrolleau):

 * keywords:   => has-patch


Comment:

 I've add a patch using the following solution, that seems more evolutive.
 {{{#!php
 <?php
 return apply_filters( "element_class_name", $class_name, $element );
 }}}

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


More information about the wp-trac mailing list