WP_Media_List_Table::handle_row_actions() – Generates and displays row action links.

You appear to be a bot. Output may be restricted

Description

Generates and displays row action links.

Usage

$string = WP_Media_List_Table::handle_row_actions( $item, $column_name, $primary );

Parameters

$item
( WP_Post ) required – Attachment being acted upon.
$column_name
( string ) required – Current column name.
$primary
( string ) required – Primary column name.

Returns

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

Source

File name: wordpress/wp-admin/includes/class-wp-media-list-table.php
Lines:

1 to 13 of 13
  protected function handle_row_actions( $item, $column_name, $primary ) {
    if ( $primary !== $column_name ) {
      return '';
    }

    $att_title = _draft_or_post_title();
    $actions   = $this->WP_Media_List_Table::_get_row_actions(
      $item, // WP_Post object for an attachment.
      $att_title
    );

    return $this->row_actions( $actions );
  }
 

 View on GitHub View on Trac