Action
rpress_live_orders_card_before_footer
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#
| Parameter | Type | Description |
|---|---|---|
$payment_id | int | Order ID. |
$order_status | string | Order 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), inRP_Live_Orders::render_card()
See also#
Was this page helpful?
