Back to list of all filter and action hooks for Address Book for WooCommerce.
Description #
Allows customization of the “Save address” checkout field.
Parameters #
$field(array) Field configuration array:label(string) Field label text.type(string) Field type (checkbox).required(bool) Whether field is required.class(array) CSS classes for the field.value(string)Default value.default(mixed) Default field value.priority(int) Field display priority.custom_attributes(array) Custom HTML attributes.
Examples #
/**
* Add custom notice to edit address form
*/
function fc_update_save_address_label( $field ) {
$field['label'] = __( 'Save this address for future use', 'your-text-domain' );
$field['class'][] = 'my-custom-class';
return $field;
}
add_filter( 'fc_pro_address_book_save_checkout_field', 'fc_update_save_address_label', 10 );
