[wp-trac] [WordPress Trac] #58824: Add a filter to change the classes in posts list table in admin
WordPress Trac
noreply at wordpress.org
Thu Jun 13 09:58:05 UTC 2024
#58824: Add a filter to change the classes in posts list table in admin
-------------------------------------+-------------------------------------
Reporter: zahardoc | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: good-first-bug has- | Focuses: ui, css,
patch | administration
-------------------------------------+-------------------------------------
Comment (by thehercules):
I've submitted a PR(https://github.com/WordPress/wordpress-
develop/pull/6800) for this issue where I added a filter
wp_list_table_classes and also sanitized CSS classes using
sanitize_html_class.
However, adding filter in the `class-wp-list-table` would only affect
Tables in Pages like `Sites`, which directly use class-wp-list-table. This
filter would work perfectly for them. However, if we want to add classes
to the Custom Post Table, which uses class-wp-post-list-table(that extends
the Parent class), the filter would not take effect. There are also many
child classes that extend wp_list_table and then this filter wouldn’t work
for them.
Do you have any suggestions on how we can implement this in a way that the
filter affects all types of tables?
Looking forward to your feedback!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58824#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list