Skip to content
Docs
Get RestroPress

Action

rpress_cc_form

Updated
On this page

Fires to render the default credit card form.

Runs in rpress_show_cc_form() when the cart total is greater than zero and no callback is hooked to the chosen gateway's own rpress_{$payment_mode}_cc_form action. Core hooks rpress_get_cc_form() here, and removes it when no payment gateway is enabled.

Example#

function my_cc_form_intro() {
	echo '<p class="my-cc-intro">' . esc_html__( 'Enter your card details.', 'my-textdomain' ) . '</p>';
}
add_action( 'rpress_cc_form', 'my_cc_form_intro', 5, 0 );

Source#

Fired from:

  • includes/checkout/template.php (line 245), in rpress_show_cc_form()

See also#

Was this page helpful?