Back to list of all filter and action hooks for Address Book for WooCommerce.
Description #
Customize classes for the “Edit” button in address book entries on the account page.
Parameters #
$classes(string) CSS classes.$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.
Examples #
/**
* Add custom CSS classes to edit button
*/
function my_custom_edit_button_classes( $classes, $address_entry ) {
$classes .= ' custom-class';
return $classes;
}
add_filter( 'fc_pro_address_book_entry_account_edit_button_classes', 'my_custom_edit_button_classes', 10, 2 );
