shopp_billing_cardtype_required

filters the validation test on the billing cardtype field on the checkout.

add_filter( 'shopp_billing_cardtype_required', [callback] )

@param bool $error true when an error is needed due to empty cardtype field on the checkout, else false.

Description

filters the validation test on the billing cardtype 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_cardtype_required', 'billing_cardtype_validation_filter');

// create filter function
function billing_cardtype_validation_filter( $error ) {
    // always prevent validation error on this field
    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