Skip to content
Docs
Get RestroPress

Filter

rpress_verify_credit_cards

Updated
On this page

Filters whether credit card numbers are verified on checkout.

The default is false when the only enabled gateway is PayPal or Manual, or when exactly PayPal and Manual are enabled, and true otherwise. The result is cast to a boolean.

Parameters#

ParameterTypeDescription
$retboolDefault verification state.

Return value#

bool. Whether card numbers are verified.

Example#

function my_verify_credit_cards( $verify ) {
	return $verify;
}
add_filter( 'rpress_verify_credit_cards', 'my_verify_credit_cards' );

Source#

Applied in:

  • includes/rp-core-functions.php (line 1729), in rpress_is_cc_verify_enabled()
Was this page helpful?