Add custom class to WP_Posts_List_Table->single_row() output
|Reported by:||brandondove||Owned by:||westi|
|Cc:||brandondove, jbrown510@…, anointed|
I am working on a custom post type implemention with some common custom meta information that I want to display in the post list. There is a need to indicate each post's status with a quick visual queue. Since there is no way to target a group of table rows that have certain characteristics, I resorted to highlighting the rows using jQuery.
Looking at the WP_Posts_List_Table class, it seems that this would be an easy problem to solve by simply adding a filter to the table row class list. I'm sure this same concept could also be extended to the other subclasses of WP_List_Table.
Change History (14)
- Owner changed from brandondove to westi
- Status changed from new to reviewing
- Keywords westi-likes added
- Milestone changed from Awaiting Review to 3.3