Action
rpress_before_cc_fields
Fires before the default credit card fieldset.
Runs at the start of rpress_get_cc_form(), before the card fieldset markup. It only fires when the default card form is used.
Example#
function my_before_cc_fields() {
echo '<p class="my-cc-accepted">' . esc_html__( 'We accept Visa and Mastercard.', 'my-textdomain' ) . '</p>';
}
add_action( 'rpress_before_cc_fields', 'my_before_cc_fields', 10, 0 );
Source#
Fired from:
includes/checkout/template.php(line 417), inrpress_get_cc_form()
See also#
Was this page helpful?
