Summery Summery
Generates and displays row action links.
Syntax Syntax
Parameters Parameters
- $post
-
(Required) Attachment being acted upon.
- $column_name
-
(Required) Current column name.
- $primary
-
(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 ); }
Advertisement
Changelog Changelog
Version | Description |
---|---|
4.3.0 | Introduced. |