Filter hook 'media_row_actions'
in WP Core File wp-admin/includes/class-wp-media-list-table.php at line 863
Description
Filters the action links for each attachment in the Media list table.
Occurrences
Filename |
Line Number |
wp-admin/includes/class-wp-media-list-table.php |
863 |
Parameters
Type |
Name |
Description |
string[] |
$actions |
An array of action links for each attachment. Includes 'Edit', 'Delete Permanently', 'View', 'Copy URL' and 'Download file'. |
WP_Post |
$post |
WP_Post object for the current attachment. |
bool |
$detached |
Whether the list table contains media not attached to any posts. Default true. |
PHP Doc
/**
* Filters the action links for each attachment in the Media list table.
*
* @since 2.8.0
*
* @param string[] $actions An array of action links for each attachment.
* Includes 'Edit', 'Delete Permanently', 'View',
* 'Copy URL' and 'Download file'.
* @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.
*/