fc_pro_address_book_entry_display_label_remove_skip_list

Back to list of all filter and action hooks for Address Book for WooCommerce.

Description #

Define which fields to skip when displaying address labels on a list of available addresses.

Allows to define which address fields should be excluded from the formatted address display labels on a list of available addresses.

Parameters #

  • $skip_list (array) Array of field keys to skip. Defaults to array( 'address_id', 'address_label', 'default_shipping', 'default_billing' )
    • address_id (string) Address ID field key.
    • address_label (string) Address label field key.
    • default_shipping (string) Default shipping field key.
    • default_billing (string) Default billing field key.
    • first_name (string) First name field key.
    • last_name (string) Last name field key.
    • company (string) Company field key.
    • address_1 (string) Address line 1 field key.
    • address_2 (string) Address line 2 field key.
    • city (string) City field key.
    • postcode (string) Postal/Zip code field key.
    • state (string) State field key.
    • country (string) Country field key.
    • phone (string) Phone field key.
    • email (string) Email field key.

Examples  #

/**
 * Skip showing company and phone values when displaying the list of available address book entries.
 */
function skip_displaying_company_phone_in_address_book_lists( $skip_list ) {
    // Add company and phone to skip list
    $skip_list[] = 'company';
    $skip_list[] = 'phone';
    
    return $skip_list;
}
add_filter( 'fc_pro_address_book_entry_display_label_remove_skip_list', 'skip_displaying_company_phone_in_address_book_lists', 10 );

What are your feelings

Updated on December 15, 2025