[wp-trac] [WordPress Trac] #19278: Allow WP_List_Table ::get_bulk_items() to receive a nested array and output optgroups
WordPress Trac
noreply at wordpress.org
Fri Feb 14 17:31:39 UTC 2020
#19278: Allow WP_List_Table ::get_bulk_items() to receive a nested array and output
optgroups
-------------------------------------------------+-------------------------
Reporter: goldenapples | Owner:
| valentinbora
Type: enhancement | Status: accepted
Priority: normal | Milestone: 5.5
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: has-patch dev-feedback needs- | Focuses: ui,
testing | administration
-------------------------------------------------+-------------------------
Changes (by valentinbora):
* milestone: Future Release => 5.5
Comment:
Happy to report that it works mighty fine onto [47289]. The patch applies
cleanly and works. Here's a code sample:
{{{#!php
<?php
add_filter( 'bulk_actions-edit-post', 'register_my_bulk_actions' );
function register_my_bulk_actions( $bulk_actions ) {
$bulk_actions['Grouped actions'] = [
'hello' => 'Hello',
'world' => 'World'
];
return $bulk_actions;
}
}}}
Looking forward to more feedback from others regarding the addition.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/19278#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list