shopp_billing_postcode_required

filters the validation check of the postal code field on the checkout form.

add_filter( 'shopp_billing_postcode_required', [callback] )

@param bool $error true when the billing postal code is missing on the checkout form, and false otherwise.

Description

filters the validation check of the postal code 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_postcode_required', 'validate_postcode');

// create filter function
function validate_postcode( $error ) {
    // always prevent error on the postal code 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