WP_List_Table::handle_row_actions()
Generates and display row actions links for the list table.
Method of the class: WP_List_Table{}
No Hooks.
Return
String
. The row actions HTML, or an empty string if the current column is not the primary column.
Usage
// protected - for code of main (parent) or child class $result = $this->handle_row_actions( $item, $column_name, $primary );
- $item(object|array) (required)
- The item being acted upon.
- $column_name(string) (required)
- Current column name.
- $primary(string) (required)
- Primary column name.
Changelog
Since 4.3.0 | Introduced. |
WP_List_Table::handle_row_actions() WP List Table::handle row actions code WP 6.6.2
protected function handle_row_actions( $item, $column_name, $primary ) { return $column_name === $primary ? '<button type="button" class="toggle-row"><span class="screen-reader-text">' . /* translators: Hidden accessibility text. */ __( 'Show more details' ) . '</span></button>' : ''; }