Snippets: How to Add New Social Share Options

// This will add a new Whatsapp button to the social share, be sure to log into the Customizer to enable it
add_filter( 'wpex_get_social_items', function ( $items ) {
	$items['whatsapp'] = array(
		'site'       => 'Whatsapp',
		'label'      => 'Whatsapp',
		'li_class'   => 'whatsapp',
		'icon_class' => 'fa fa-whatsapp',
		'href'       => 'whatsapp://send?text=' . get_permalink(),
	);
	return $items;
} );

/*
You can add the following custom CSS to your site to give it a background color when using the Flat social option
Note how we are targeting the classname defined above for the li_class parameter
.wpex-social-share.style-flat li.whatsapp a {
    background: #25d366;
} */
All PHP snippets should be added via a child theme's functions.php file.