On this page
WP_List_Table::handle_row_actions( object|array $item, string $column_name, string $primary ): string
Generates and display row actions links for the list table.
Parameters
$itemobject|array Required-
The item being acted upon.
$column_namestring Required-
Current column name.
$primarystring Required-
Primary column name.
Return
string The row actions HTML, or an empty string if the current column is not the primary column.
Source
File: wp-admin/includes/class-wp-list-table.php. View all references
protected function handle_row_actions( $item, $column_name, $primary ) {
return $column_name === $primary ? '<button type="button" class="toggle-row"><span class="screen-reader-text">' . __( 'Show more details' ) . '</span></button>' : '';
}
Related
Uses
| Uses | Description |
|---|---|
| __() wp-includes/l10n.php | Retrieves the translation of $text. |
Used By
| Used By | Description |
|---|---|
| WP_List_Table::single_row_columns() wp-admin/includes/class-wp-list-table.php | Generates the columns for a single row of the table. |
Changelog
| Version | Description |
|---|---|
| 4.3.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_list_table/handle_row_actions