Snippets: Customize Social Share Icons

/**
 * Customize the social share icons.
 *
 * Note: The theme sanitizes the output so only img and span tags are allowed.
 */
add_filter( 'wpex_social_share_items', function( $items ) {
	$items['twitter']['icon']  = '<img src="YOUR_IMAGE_URL" />';
	$items['facebook']['icon'] = '<img src="YOUR_IMAGE_URL" />';
	$items['linkedin']['icon'] = '<img src="YOUR_IMAGE_URL" />';
	$items['email']['icon']    = '<img src="YOUR_IMAGE_URL" />';
	return $items;
} );

Version Required:5.0.8+

Snippet Type: PHP

Posted Under: Social Share

All PHP snippets should be added via a child theme's functions.php file.