sequra_merchant_options_addresses_may_be_missing

Hook Filter

Allow modify the addresses_may_be_missing value. Must return null, 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 fulfill the order, e.g., for digital products.

ParameterTypeDescription
$addresses_may_be_missingboolThe actual value

Changelog

VersionDescription
3.0.0Introduced

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;
});