Filter
rpress_verify_credit_cards
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#
| Parameter | Type | Description |
|---|---|---|
$ret | bool | Default 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), inrpress_is_cc_verify_enabled()
Was this page helpful?
