sequra_merchant_options_addresses_may_be_missing
Hook Filter
Allow modify the addresses_may_be_missing value. Must return true or false.
Description
This filter allows modifying the addresses_may_be_missing value inside options object which is part of the payload of the Order API calls. This can be set to true when the address fields are not required to fulfil the order, e.g., for digital products. By default is set to false.
Some issues with Gutenberg checkout and missing address fields set totruehas been detected preventing order completion after IPN is received. Use with caution and perform tests after enabling it.
| Parameter | Type | Description |
|---|---|---|
$addresses_may_be_missing | bool | The actual value |
Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced |
Usage Example
add_filter('sequra_merchant_options_addresses_may_be_missing', function($addresses_may_be_missing){
$addresses_may_be_missing = true;
return $addresses_may_be_missing;
});Updated 6 days ago