Replace the social links HTML entirely
Filter the final HTML string produced by [benecaster_social_links] or the episode page social block. Use to swap in a custom icon set, wrap the list in additional markup, or return an empty string to suppress output on specific pages.
Code
<?php
// Wrap social links in a branded container on show pages.
add_filter(
'benecaster_social_links_output',
function ( string $html, array $items, array $config ): string {
if ( is_singular( 'benecaster_show' ) ) {
return '<div class="my-brand-social">' . $html . '</div>';
}
return $html;
},
10, 3
);