Skip to content
Docs
Get RestroPress

Action

rpress_live_orders_card_before_footer

Updated
On this page

Fires inside a Live Orders card, above the action footer.

Runs once for each order card on the Live Orders board, just before the footer that holds the next-action button. Features use it for print status and alert controls. Output is printed directly, so escape it yourself.

Available since RestroPress 3.5.

Parameters#

ParameterTypeDescription
$payment_idintOrder ID.
$order_statusstringOrder status key.

Example#

add_action( 'rpress_live_orders_card_before_footer', 'my_live_card_note', 10, 2 );
function my_live_card_note( $payment_id, $order_status ) {
	if ( 'pending' === $order_status ) {
		echo '<p class="my-note">' . esc_html__( 'Awaiting confirmation', 'my-plugin' ) . '</p>';
	}
}

Source#

Fired from:

  • includes/admin/payments/class-live-orders.php (line 660), in RP_Live_Orders::render_card()

See also#

Was this page helpful?