Title: WP_List_Table::get_bulk_actions
Published: April 25, 2014
Last modified: May 20, 2026

---

# WP_List_Table::get_bulk_actions(): array<string,

## In this article

 * [Description](https://developer.wordpress.org/reference/classes/wp_list_table/get_bulk_actions/?output_format=md#description)
 * [Return](https://developer.wordpress.org/reference/classes/wp_list_table/get_bulk_actions/?output_format=md#return)
 * [More Information](https://developer.wordpress.org/reference/classes/wp_list_table/get_bulk_actions/?output_format=md#more-information)
 * [Source](https://developer.wordpress.org/reference/classes/wp_list_table/get_bulk_actions/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/wp_list_table/get_bulk_actions/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_list_table/get_bulk_actions/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_list_table/get_bulk_actions/?output_format=md#wp--skip-link--target)

Retrieves the list of bulk actions available for this table.

## 󠀁[Description](https://developer.wordpress.org/reference/classes/wp_list_table/get_bulk_actions/?output_format=md#description)󠁿

The format is an associative array where each element represents either a top level
option value and label, or an array representing an optgroup and its options.

For a standard option, the array element key is the field value and the array element
value is the field label.

For an optgroup, the array element key is the label and the array element value 
is an associative array of options as above.

Example:

    ```php
    [
        'edit'         => 'Edit',
        'delete'       => 'Delete',
        'Change State' => [
            'feature' => 'Featured',
            'sale'    => 'On Sale',
        ]
    ]
    ```

## 󠀁[Return](https://developer.wordpress.org/reference/classes/wp_list_table/get_bulk_actions/?output_format=md#return)󠁿

 array<string, `string|array`<string, string>> An associative array of bulk actions.

## 󠀁[More Information](https://developer.wordpress.org/reference/classes/wp_list_table/get_bulk_actions/?output_format=md#more-information)󠁿

Override this method to return an associative array ( action_slug => action_title)
containing all the bulk actions available for the table.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_list_table/get_bulk_actions/?output_format=md#source)󠁿

    ```php
    protected function get_bulk_actions() {
    	return array();
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/class-wp-list-table.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/includes/class-wp-list-table.php#L559)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-list-table.php#L559-L561)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/wp_list_table/get_bulk_actions/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_List_Table::bulk_actions()](https://developer.wordpress.org/reference/classes/wp_list_table/bulk_actions/)`wp-admin/includes/class-wp-list-table.php` |

Displays the bulk actions dropdown.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_list_table/get_bulk_actions/?output_format=md#changelog)󠁿

| Version | Description | 
| [5.6.0](https://developer.wordpress.org/reference/since/5.6.0/) | A bulk action can now contain an array of options in order to create an optgroup. | 
| [3.1.0](https://developer.wordpress.org/reference/since/3.1.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_list_table%2Fget_bulk_actions%2F)
before being able to contribute a note or feedback.