Snippets: Add New Social Options To The Social Links Widget

Important: This filter has been deprecated in 1.4.9 in exchange for the global social profiles list, please see the docs here.

// @deprecated - please see notice above
add_filter( 'wpex_social_widget_profiles', function( $array ) {

	/**
	 * Add "medium" to social widget
	 * The "key" should be the sane name as the Theme Icon - https://total.wpexplorer.com/features/icons/
	 *
	 **/
	$array['medium'] = array(
		'name' => 'Medium',
		'url' => '',
	);

	// Return array
	return $array;

} );
All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)