On this page
WP_Media_List_Table::handle_row_actions( WP_Post $item, string $column_name, string $primary ): string
Generates and displays row action links.
Parameters
$itemWP_Post Required-
Attachment being acted upon.
$column_namestring Required-
Current column name.
$primarystring 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. View all references
protected function handle_row_actions( $item, $column_name, $primary ) {
if ( $primary !== $column_name ) {
return '';
}
$att_title = _draft_or_post_title();
$actions = $this->_get_row_actions(
$item, // WP_Post object for an attachment.
$att_title
);
return $this->row_actions( $actions );
}
Related
Uses
| Uses | Description |
|---|---|
| _draft_or_post_title() wp-admin/includes/template.php | Gets the post title. |
| WP_Media_List_Table::_get_row_actions() wp-admin/includes/class-wp-media-list-table.php |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_media_list_table/handle_row_actions