Back to list of all filter and action hooks for Address Book for WooCommerce.
Description #
Customize start tag markup for checkout address book entries list element.
Parameters #
$markup(string) HTML markup.$address_type(string) Address type (billing/shipping).$address_book_entries(array) Address book entries.address_id(array) Address entry data for each ID.
Examples #
/**
* Add custom class to address book entries list container.
*/
function my_custom_address_book_start_tag( $markup, $address_type, $address_book_entries ) {
// Modify the existing markup instead of replacing it
$markup = str_replace(
'class="address-book__entries"',
'class="address-book__entries custom-class"',
$markup
);
return $markup;
}
add_filter( 'fc_pro_address_book_entries_start_tag_markup', 'my_custom_address_book_start_tag', 10, 3 );
