apply_filters( ‘media_row_actions’, string[] $actions, WP_Post $post, bool $detached )

In this article

Filters the action links for each attachment in the Media list table.

Parameters

$actionsstring[]
An array of action links for each attachment.
Includes 'Edit', ‘Delete Permanently’, 'View', ‘Copy URL’ and ‘Download file’.
$postWP_Post
WP_Post object for the current attachment.
$detachedbool
Whether the list table contains media not attached to any posts. Default true.

Source

return apply_filters( 'media_row_actions', $actions, $post, $this->detached );

Changelog

VersionDescription
2.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.