Title: WP_MS_Themes_List_Table::get_bulk_actions
Published: April 25, 2014
Last modified: August 20, 2026

---

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

## In this article

 * [Return](https://developer.wordpress.org/reference/classes/wp_ms_themes_list_table/get_bulk_actions/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/classes/wp_ms_themes_list_table/get_bulk_actions/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/wp_ms_themes_list_table/get_bulk_actions/?output_format=md#related)

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

Gets the list of bulk actions for the list table.

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

 array<string, string> The list of bulk actions.

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

    ```php
    protected function get_bulk_actions() {
    	global $status;

    	$actions = array();
    	if ( 'enabled' !== $status ) {
    		$actions['enable-selected'] = $this->is_site_themes ? __( 'Enable' ) : __( 'Network Enable' );
    	}
    	if ( 'disabled' !== $status ) {
    		$actions['disable-selected'] = $this->is_site_themes ? __( 'Disable' ) : __( 'Network Disable' );
    	}
    	if ( ! $this->is_site_themes ) {
    		if ( current_user_can( 'update_themes' ) ) {
    			$actions['update-selected'] = __( 'Update' );
    		}
    		if ( current_user_can( 'delete_themes' ) ) {
    			$actions['delete-selected'] = __( 'Delete' );
    		}
    	}

    	if ( $this->show_autoupdates ) {
    		if ( 'auto-update-enabled' !== $status ) {
    			$actions['enable-auto-update-selected'] = __( 'Enable Auto-updates' );
    		}

    		if ( 'auto-update-disabled' !== $status ) {
    			$actions['disable-auto-update-selected'] = __( 'Disable Auto-updates' );
    		}
    	}

    	return $actions;
    }
    ```

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

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

| Uses | Description | 
| [current_user_can()](https://developer.wordpress.org/reference/functions/current_user_can/)`wp-includes/capabilities.php` |

Returns whether the current user has the specified capability.

  | 
| [__()](https://developer.wordpress.org/reference/functions/__/)`wp-includes/l10n.php` |

Retrieves the translation of $text.

  |

## User Contributed Notes

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