krista-m
5/25/2018 - 10:46 AM

Reorder Simple Social Icons

Reorder the icons using the Simple Social Icons plugin

//* Reorder icons in Simple Social Icons plugin
add_filter( 'simple_social_default_profiles', 'custom_reorder_simple_icons' );
function custom_reorder_simple_icons( $icons ) {

	// Set your new order here
	$new_icon_order = array(
		'behance'     => '',
		'bloglovin'   => '',
		'dribbble'    => '',
		'email'       => '',
		'facebook'    => '',
		'flickr'      => '',
		'github'      => '',
		'gplus'       => '',
		'instagram'   => '',
		'linkedin'    => '',
		'medium'      => '',
		'periscope'   => '',
		'phone'       => '',
		'pinterest'   => '',
		'rss'         => '',
		'snapchat'    => '',
		'stumbleupon' => '',
		'tumblr'      => '',
		'twitter'     => '',
		'vimeo'       => '',
		'xing'        => '',
		'youtube'     => '',
	);

	foreach( $new_icon_order as $icon => $icon_info ) {
		$new_icon_order[ $icon ] = $icons[ $icon ];
	}

	return $new_icon_order;
}