Summery Summery

Generates and displays row action links.

Syntax Syntax

WP_Media_List_Table::handle_row_actions( object $post, string $column_name, string $primary )

Parameters Parameters


(object) (Required) Attachment being acted upon.


(string) (Required) Current column name.


(string) (Required) Primary column name.

Return Return

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

Source Source

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

		 * @param string[] $actions  An array of action links for each attachment.
		 *                           Default 'Edit', 'Delete Permanently', 'View'.
		 * @param WP_Post  $post     WP_Post object for the current attachment.
		 * @param bool     $detached Whether the list table contains media not attached
		 *                           to any posts. Default true.
		return apply_filters( 'media_row_actions', $actions, $post, $this->detached );


Changelog Changelog

Version Description
4.3.0 Introduced.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.