Skip to content
Docs
Get RestroPress

Action

rpress_order_history_row_start

Updated
On this page

Fires before each order card in the order history list.

Runs once per order while the first page of the order history is rendered, before the order card markup. Orders loaded later through the load-more request are not covered by this hook.

Parameters#

ParameterTypeDescription
$payment_idintID of the order.
$payment_metaarrayPayment meta of the order.

Example#

add_action( 'rpress_order_history_row_start', 'my_order_history_row_start', 10, 2 );
function my_order_history_row_start( $payment_id, $payment_meta ) {
	echo '<!-- order ' . esc_html( $payment_id ) . ' -->';
}

Notes#

Only fired by the main order history template. The load-more template does not call it.

Source#

Fired from:

  • templates/history-purchases.php (line 82)

See also#

Was this page helpful?