Snippets: Change Social Share Labels/Text

This snippet shows how you could easily change the labels/text displayed for the social sharing buttons.

add_filter( 'wpex_get_social_items', function ( $items ) {
	$items['twitter']['label']   = 'custom text';
	$items['facebook']['label']  = 'custom text';
	$items['pinterest']['label'] = 'custom text';
	$items['linkedin']['label']  = 'custom text';
	$items['email']['label']     = 'custom text';
	return $items;
} );
All PHP snippets should be added via a child theme's functions.php file.