Back to list of all filter and action hooks for Address Book for WooCommerce.
Description #
Change how many saved addresses a customer must have before the Filter saved addresses search field is shown on checkout. The filter is a client-side search over the list of saved addresses (cards/list layout only).
Parameters #
$min_count(int) Minimum number of saved address entries required to show the filter. Default:10.$address_type(string) Address type:billingorshipping.$address_book_entries(array) The address book entries that will be listed (each entry is the usual address data structure used elsewhere in Address Book).
Examples #
/**
* Show the saved-addresses filter once there are at least two entries.
*/
function fc_show_filter_when_multiple_saved_addresses( $min_count, $address_type, $address_book_entries ) {
return 2;
}
add_filter( 'fc_pro_address_book_saved_addresses_filter_min_count', 'fc_show_filter_when_multiple_saved_addresses', 10, 3 );
