wppaste
WordPress

WP_Media_List_Table::get_bulk_actions(): array

Source
wp-admin/includes/class-wp-media-list-table.php:179

Return

array

Uses · 1

  • __()Retrieves the translation of $text.

Source

	protected function get_bulk_actions() {		$actions = array(); 		if ( MEDIA_TRASH ) {			if ( $this->is_trash ) {				$actions['untrash'] = __( 'Restore' );				$actions['delete']  = __( 'Delete permanently' );			} else {				$actions['trash'] = __( 'Move to Trash' );			}		} else {			$actions['delete'] = __( 'Delete permanently' );		} 		if ( $this->detached ) {			$actions['attach'] = __( 'Attach' );		} 		return $actions;	}

History

One change between 6.7.7 and 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

7.0.4
Return type changed from array to array<string,.verified against source

About this page

Parsed data
Generated from the wordpress-develop 6.9.7 tag, from src/wp-admin/includes/class-wp-media-list-table.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.