Filters the action links for each attachment in the Media list table.
Parameters
Source
return apply_filters( 'media_row_actions', $actions, $post, $this->detached );
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
Filters the action links for each attachment in the Media list table.
return apply_filters( 'media_row_actions', $actions, $post, $this->detached );
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
The above description of the
$actionparameter is confusing. The paramter consists of keys, which by default (as of this writing) are:edit,delete,view,copy, anddownload.Each key’s value is html to display in the action row.
For example:
array(
'edit' => '<a href="https://example.com/wp-admin/post.php?post=123&action=edit" aria-label="Edit “YardScaping_Spring-Lawn-Article_final_5-23-08”">Edit</a>',
'view' => '<a href="https://trustees.ddev.site/?attachment_id=43897" aria-label="View “YardScaping_Spring-Lawn-Article_final_5-23-08”" rel="bookmark">View</a>',
...
)