Generates and display row actions links for the list table.
Parameters
$item
object|arrayrequired- The item being acted upon.
$column_name
stringrequired- Current column name.
$primary
stringrequired- Primary column name.
Source
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>' : '';
}
Changelog
Version | Description |
---|---|
4.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.