[wp-trac] [WordPress Trac] #58824: Add a filter to change the classes in posts list table in admin
WordPress Trac
noreply at wordpress.org
Mon Jul 17 19:26:57 UTC 2023
#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 | Keywords:
Focuses: ui, css, administration |
-------------------------------------+-----------------------------
Currently, there is no way to change the classes in the posts list table,
and the posts list table template is hardcoded. So there is no way to add
any classes, for example, specific classes for custom post types there.
**Proposal:**
Add a filter to "WP_List_Table::get_table_classes()" function, like this:
{{{#!php
<?php
return apply_filters( 'post_list_table_classes', array( 'widefat',
'fixed', 'striped', $mode_class, $this->_args['plural'] ), $this );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58824>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list