wppaste
WordPress

WP_Media_List_Table::handle_row_actions( WP_Post $item, string $column_name, string $primary ): string

Since
4.3.0, 5.9.0
Source
wp-admin/includes/class-wp-media-list-table.php:922
Generates and displays row action links.

Parameters

$itemWP_Post
Attachment being acted upon.
$column_namestring
Current column name.
$primarystring
Primary column name.

Return

string
Row actions output for media attachments, or an empty string if the current column is not the primary column.

Uses · 3

Source

	protected function handle_row_actions( $item, $column_name, $primary ) {		if ( $primary !== $column_name ) {			return '';		} 		// Restores the more descriptive, specific name for use within this method.		$post = $item; 		$att_title = _draft_or_post_title();		$actions   = $this->_get_row_actions( $post, $att_title ); 		return $this->row_actions( $actions );	}

History

Introduced in 4.3.0. Unchanged from 6.7.7 through 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.

5.9.0
Renamed $post to $item to match parent class for PHP 8 named parameter support.from the docblock
4.3.0
Introduced.from the docblock

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 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.