Skip to content
Docs
Get RestroPress

Action

rpress_user_dashboard_order_actions

Updated
On this page

Fires in the actions cell of each order row in the dashboard orders table.

Runs for every order in the Orders panel of the customer dashboard, after the view icon. Print links or buttons for that order; callbacks must escape their own output.

Parameters#

ParameterTypeDescription
$payment_idintOrder ID, passed as $payment->ID.

Example#

function my_dashboard_order_action( $payment_id ) {
	printf(
		'<a href="%s">%s</a>',
		esc_url( add_query_arg( 'order', $payment_id, home_url( '/support/' ) ) ),
		esc_html__( 'Help', 'my-plugin' )
	);
}
add_action( 'rpress_user_dashboard_order_actions', 'my_dashboard_order_action' );

Source#

Fired from:

  • templates/rpress-user-dashboard.php (line 286)

See also#

Was this page helpful?