Filter
rpress_order_row_actions
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#
| Parameter | Type | Description |
|---|---|---|
$row_actions | array | Associative array of action key to HTML link. |
$payment | RPRESS_Payment | The 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), inRPRESS_Payment_History_Table::column_ID()
See also#
Was this page helpful?
