shopp_billing_cardholder_required

filters the validation test of the billing cardholder field.

add_filter( 'shopp_billing_cardholder_required', [callback] )

@param bool $error true when an error will be triggered for the cardholder field on the checkout, false if no error is needed.

Description

filters the validation test of the billing cardholder field.

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_cardholder_required', 'billing_cardholder_validation');

// create filter function
function billing_cardholder_validation( $error ) {
    // always prevent this error from being displayed
    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