Back to list of all filter and action hooks for Address Book for WooCommerce.
Description #
Control whether the “Enter a new address” option is available as an address source on checkout. When this filter returns false, the option to enter a new address manually is removed from the address sources list, and customers can only select from their previously saved addresses.
Parameters #
$is_enabled(bool) Whether the new address source option is enabled. Default:true.
Examples #
/**
* Remove the "Enter a new address" option from the address sources on checkout.
* Customers will only be able to select from their saved addresses.
*/
add_filter( 'fc_adb_is_new_address_source_enabled', '__return_false' );
