Action
rpress_admin_order_preview_start
Fires at the top of the order preview modal content.
Runs inside the underscore template printed for the order preview modal, before the order summary. The markup is output once with the template, not once per order; use template syntax to show per-order data.
Example#
function my_order_preview_start() {
echo '<div class="notice notice-info inline"><p>' . esc_html__( 'Check allergies before preparing.', 'my-plugin' ) . '</p></div>';
}
add_action( 'rpress_admin_order_preview_start', 'my_order_preview_start' );
Notes#
No arguments are passed.
Source#
Fired from:
includes/admin/payments/class-payments-table.php(line 3031), inRPRESS_Payment_History_Table::order_preview_template()
See also#
Was this page helpful?
