Skip to content
Docs
Get RestroPress

Filter

rpress_payment_row_actions

Updated
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#

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_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), in RPRESS_Payment_History_Table::column_email()

See also#

Was this page helpful?