In this Example, let’s assume every item had the attribute $item['approved']
with values Zero unapproved and One for approved.
How can I get the rows of the “unapproved books” to be yellow?
(well, it’s not about the yellow, but about the WP standard compliant procedure of marking rows as unapproved)
Well, the yellow comes from
and this is, in crass contrast to what the usual
WP_List_Table
introduction might suggest, not an automatism, but generated very verbatim:See e.g.
single_row()
inwp-admin/includes/class-wp-comments-list-table.php
:which overrides the standard method inherited from
wp-admin/includes/class-wp-list-table.php