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

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


Parameters

$actions string[]
An array of action links for each attachment.
Default 'Edit', 'Delete Permanently', 'View'.
$post WP_Post
WP_Post object for the current attachment.
$detached bool
Whether the list table contains media not attached to any posts. Default true.

Top ↑

Source

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

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


Top ↑

Changelog

Changelog
Version Description
2.8.0 Introduced.

Top ↑

User Contributed Notes

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