Skip to content

Instantly share code, notes, and snippets.

@eri-trabiccolo
Created March 19, 2015 08:26
Show Gist options
  • Save eri-trabiccolo/ff5bfcf09a31ed1bc2af to your computer and use it in GitHub Desktop.
Save eri-trabiccolo/ff5bfcf09a31ed1bc2af to your computer and use it in GitHub Desktop.
Socials reordering
add_filter('tc_default_socials', 'reorder_socials', 11);
function reorder_socials( $_socials ){
/* available socials are (in the following order)
tc_rss
tc_twitter
tc_facebook
tc_google
tc_instagram
tc_tumblr
tc_flickr
tc_wordpress
tc_youtube
tc_pinterest
tc_github
tc_dribbble
tc_linkedin
*/
$new_order = array(
'tc_rss' => array(), // first
'tc_tumblr' => array(), // second
'tc_twitter' => array(), // third
'tc_linkedin' => array(), // fourth
);
return array_merge($new_order, $_socials);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment