Back to list of all filter and action hooks for Address Book for WooCommerce.
Description #
Customize end 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 #
/**
* Change closing tag from </ul> to </div> for billing addresses
*/
function my_custom_address_book_end_tag( $markup, $address_type, $address_book_entries ) {
// Use div instead of ul for billing
if ( $address_type === 'billing' ) {
return '</div>';
}
// Otherwise, keep default tag
return $markup;
}
add_filter( 'fc_pro_address_book_entries_end_tag_markup', 'my_custom_address_book_end_tag', 10, 3 );
