Action
rpress_before_cc_expiration
Fires before the expiration field of the default credit card form.
Runs in rpress_get_cc_form() after the card name field and before the expiration month and year selects.
Example#
function my_before_cc_expiration() {
echo '<p class="my-cc-hint">' . esc_html__( 'Check the date on the front of your card.', 'my-textdomain' ) . '</p>';
}
add_action( 'rpress_before_cc_expiration', 'my_before_cc_expiration', 10, 0 );
Source#
Fired from:
includes/checkout/template.php(line 455), inrpress_get_cc_form()
See also#
Was this page helpful?
