apply_filters( 'lp__contact_details_html_items', $items, $classes );
This code filters and customizes the HTML items for contact details.
Plugin
Namespace
Launchpad
Parameters
apply_filters( 'lp__contact_details_html_items', $items, $classes )
string
$items
Contact Details HTML item list
Return
string
Filtered contact detail HTML item list
Example
Suppose you want to add a telephone number to the contact details displayed on your site. Here’s how you can achieve that using the lp__contact_details_html_items filter:
add_filter( 'lp__contact_details_html_items', function ( $items ) {
// Add a telephone number to the contact details
$items['telephone'] = '123-456-7890';
return $items;
});
After applying this customization, the telephone number '123-456-7890' will be added to the contact details displayed on your site.