shopp_billing_address_required

filters the boolean value used to determine if the billing address field is needed on the checkout.

add_filter( 'shopp_billing_address_required', [callback] )

@param bool $error true when an error needs to be triggered, because the billing address is not provided, or is insufficient.  false when no error is required.

Description

filters the test for an empty billing address field on the checkout form.

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_address_required', 'override_billing_address_requirement');

// create filter function
function override_billing_address_requirement( $error ) {
    // Never allow an 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