WP_List_Table::handle_row_actions( object $item, string $column_name, string $primary )

Generates and display row actions links for the list table.


Description Description


Parameters Parameters

$item

(object) (Required) The item being acted upon.

$column_name

(string) (Required) Current column name.

$primary

(string) (Required) Primary column name.


Top ↑

Return Return

(string) The row actions HTML, or an empty string if the current column is the primary column.


Top ↑

Source Source

File: wp-admin/includes/class-wp-list-table.php

	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>' : '';
 	}

Top ↑

Changelog Changelog

Changelog
Version Description
4.3.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.