WP_MS_Sites_List_Table::get_bulk_actions
Gets an associative array of bulk actions for this table.
Method of the class: WP_MS_Sites_List_Table{}
No Hooks.
Returns
Array
Usage
// protected - for code of main (parent) or child class $result = $this->get_bulk_actions();
Changelog
| Since 3.1.0 | Introduced. |
WP_MS_Sites_List_Table::get_bulk_actions() WP MS Sites List Table::get bulk actions code WP 7.0
protected function get_bulk_actions() {
$actions = array();
if ( current_user_can( 'delete_sites' ) ) {
$actions['delete'] = __( 'Delete' );
}
$actions['spam'] = _x( 'Mark as spam', 'site' );
$actions['notspam'] = _x( 'Not spam', 'site' );
return $actions;
}