Skip to content
Docs
Get RestroPress

Filter

rpress_order_row_actions

Updated
On this page

Filters the row actions built for an order in the Orders list.

Contains Trash, or Restore and Delete Permanently, links depending on the order's state, as HTML anchor strings keyed by action. Extensions can add or remove entries.

Parameters#

ParameterTypeDescription
$row_actionsarrayAssociative array of action key to HTML link.
$paymentRPRESS_PaymentThe payment object for the row.

Return value#

array. The row actions.

Example#

function my_order_row_actions( $row_actions, $payment ) {
	unset( $row_actions['delete'] );
	return $row_actions;
}
add_filter( 'rpress_order_row_actions', 'my_order_row_actions', 10, 2 );

Notes#

In this version the order column builds the row actions but does not print them, so changes are not visible in the table.

Source#

Applied in:

  • includes/admin/payments/class-payments-table.php (line 1660), in RPRESS_Payment_History_Table::column_ID()

See also#

Was this page helpful?