Filter
rpress_payment_row_actions
On this page
Filters the row actions of the email column in the Orders list.
Array of HTML link strings keyed by action (email_links, delete) shown under the email in the email column. Because the default columns do not include an email column, it only has a visible effect when an extension adds that column.
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_payment_row_actions( $row_actions, $payment ) {
$row_actions['my_note'] = '<a href="' . esc_url( admin_url( 'admin.php?page=rpress-payment-history&view=view-order-details&id=' . $payment->ID ) ) . '">' . esc_html__( 'View', 'my-plugin' ) . '</a>';
return $row_actions;
}
add_filter( 'rpress_payment_row_actions', 'my_payment_row_actions', 10, 2 );
Notes#
Also called, as a deprecated hook (since 3.0, replaced by rpress_order_row_actions), from the order column when a callback is attached.
Source#
Applied in:
includes/admin/payments/class-payments-table.php(line 1602), inRPRESS_Payment_History_Table::column_email()
See also#
Was this page helpful?
