apply_filters( 'lp__social_media_html_items', $items, $classes )
This code filters and customizes the HTML items for social media links.
Plugin
Namespace
Launchpad
Parameters
string
$items
Social Media HTML item list
Return
string
Filtered Social Media HTML item list
Example
Suppose you want to add telegram to the social media to be displayed. Here’s how you can achieve that using the lp__social_media_html_items filter:
add_filter( 'lp__social_media_html_items', function ( $items ) {
// Add telegram to the social media items
$items['telegram'] = 'Telegram';
return $items;
});
After applying this customization, the telephone number 'Telegram' will be added to the social media displayed.