WP_Media_List_Table::handle_row_actions( WP_Post $post, string $column_name, string $primary )
Generates and displays row action links.
Parameters
- $post
-
(WP_Post) (Required) Attachment being acted upon.
- $column_name
-
(string) (Required) Current column name.
- $primary
-
(string) (Required) Primary column name.
Return
(string) Row actions output for media attachments, or an empty string if the current column is not the primary column.
Source
File: wp-admin/includes/class-wp-media-list-table.php
protected function handle_row_actions( $post, $column_name, $primary ) { if ( $primary !== $column_name ) { return ''; } $att_title = _draft_or_post_title(); return $this->row_actions( $this->_get_row_actions( $post, $att_title ) ); }
Changelog
Version | Description |
---|---|
4.3.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_media_list_table/handle_row_actions