WP_MS_Sites_List_Table::get_bulk_actions
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();
WP_MS_Sites_List_Table::get_bulk_actions() WP MS Sites List Table::get bulk actions code WP 6.9.1
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;
}