Skip to content
Docs
Get RestroPress

Action

rpress_after_cc_expiration

Updated
On this page

Fires after the expiration field of the default credit card form.

Runs in rpress_get_cc_form() after the expiration selects, still inside the card fieldset.

Example#

function my_after_cc_expiration() {
	echo '<p class="my-cc-hint">' . esc_html__( 'The security code is on the back of your card.', 'my-textdomain' ) . '</p>';
}
add_action( 'rpress_after_cc_expiration', 'my_after_cc_expiration', 10, 0 );

Source#

Fired from:

  • includes/checkout/template.php (line 470), in rpress_get_cc_form()

See also#

Was this page helpful?