Action
rpress_purchase_form_before_cc_form
Fires before the credit card form is output.
Runs in rpress_show_cc_form() before the gateway card form. That function runs when a gateway is selected, including through the AJAX gateway loader.
Available since RestroPress 1.0.0.
Example#
function my_before_cc_form() {
echo '<p class="my-cc-note">' . esc_html__( 'Your card is charged when the order is placed.', 'my-textdomain' ) . '</p>';
}
add_action( 'rpress_purchase_form_before_cc_form', 'my_before_cc_form', 10, 0 );
Source#
Fired from:
includes/checkout/template.php(line 239), inrpress_show_cc_form()
See also#
Was this page helpful?
