Created
September 20, 2016 10:14
-
-
Save nickcernis/1ad4e16c1323357cf18db401567555e2 to your computer and use it in GitHub Desktop.
Reorder Simple Social Icons
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
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( | |
'bloglovin' => '', | |
'dribbble' => '', | |
'email' => '', | |
'facebook' => '', | |
'flickr' => '', | |
'github' => '', | |
'gplus' => '', | |
'instagram' => '', | |
'linkedin' => '', | |
'medium' => '', | |
'periscope' => '', | |
'phone' => '', | |
'pinterest' => '', | |
'rss' => '', | |
'snapchat' => '', | |
'stumbleupon' => '', | |
'tumblr' => '', | |
'twitter' => '', | |
'vimeo' => '', | |
'vine' => '', | |
'xing' => '', | |
'youtube' => '', | |
); | |
foreach( $new_icon_order as $icon => $icon_info ) { | |
$new_icon_order[ $icon ] = $icons[ $icon ]; | |
} | |
return $new_icon_order; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment