shopp_billing_country_required

filters the validation test on the billing country field on the checkout form.

add_filter( 'shopp_billing_country_required', [callback] )

@param bool $error true if billing country field is empty, otherwise false.

Description

filters the validation test on the billing country field on the checkout form.

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_country_required', 'validation_billing_country');

// create filter function
function validation_billing_country( $error ) {
    // prevent error on empty billing country 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