shopp_billing_card_required

filters the validation test on the payment card number field on the checkout.

add_filter( 'shopp_billing_card_required', [callback] )

@param bool $error true if the billing card was missing, otherwise false

Description

filters the validation test on the payment card number field on the checkout.

This filter should return true to cause an error message on this field, and false to prevent an error.

Example

// register filter callback
add_filter('shopp_billing_card_required', 'card_validation_filter');

// create filter function
function card_validation_filter( $error ) {
    // prevent missing card number error
    return false;
}

See Also

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.

Skip to toolbar