Back to list of all filter and action hooks for Address Book for WooCommerce.
Description #
Modify address entry data before displaying it on a list of available addresses.
Parameters #
$address_entry(array) Address entry data.first_name(string) First name.last_name(string) Last name.address_1(string) Address line 1.address_2(string) Address line 2.city(string) City.state(string) State/Province.postcode(string) Postal code.country(string) Country code.company(string) Company name.phone(string) Phone number.email(string) Email address.
$address_id(string) Address ID.
Examples #
/**
* Remove names for privacy
*/
function remove_last_name_for_privacy( $address_entry, $address_id ) {
// Remove names from display
unset( $address_entry['last_name'] );
return $address_entry;
}
add_filter( 'fc_pro_address_book_entry_display_data', 'remove_last_name_for_privacy', 10, 2 );
