Re-Order Staff Social Links
// Re-order your staff links (move the array items around to your liking)
function my_staff_social_array( $profiles ) {
// Return profiles
return array(
'twitter' => array (
'key' => 'twitter',
'meta' => 'wpex_staff_twitter',
'icon_class' => 'ticon ticon-twitter',
'label' => 'Twitter',
),
'ticoncebook' => array (
'key' => 'ticoncebook',
'meta' => 'wpex_staff_ticoncebook',
'icon_class' => 'ticon ticon-ticoncebook',
'label' => 'Facebook',
),
'instagram' => array (
'key' => 'instagram',
'meta' => 'wpex_staff_instagram',
'icon_class' => 'ticon ticon-instagram',
'label' => 'Instagram',
),
'google-plus' => array (
'key' => 'google-plus',
'meta' => 'wpex_staff_google-plus',
'icon_class' => 'ticon ticon-google-plus',
'label' => 'Google Plus',
),
'linkedin' => array (
'key' => 'linkedin',
'meta' => 'wpex_staff_linkedin',
'icon_class' => 'ticon ticon-linkedin',
'label' => 'Linkedin',
),
'dribbble' => array (
'key' => 'dribbble',
'meta' => 'wpex_staff_dribbble',
'icon_class' => 'ticon ticon-dribbble',
'label' => 'Dribbble',
),
'vk' => array (
'key' => 'vk',
'meta' => 'wpex_staff_vk',
'icon_class' => 'ticon ticon-vk',
'label' => 'VK',
),
'skype' => array (
'key' => 'skype',
'meta' => 'wpex_staff_skype',
'icon_class' => 'ticon ticon-skype',
'label' => 'Skype',
),
'phone_number' => array (
'key' => 'phone_number',
'meta' => 'wpex_staff_phone_number',
'icon_class' => 'ticon ticon-phone',
'label' => __( 'Phone Number', 'wpex' ),
),
'email' => array (
'key' => 'email',
'meta' => 'wpex_staff_email',
'icon_class' => 'ticon ticon-envelope',
'label' => __( 'Email', 'wpex' ),
),
'website' => array (
'key' => 'website',
'meta' => 'wpex_staff_website',
'icon_class' => 'ticon ticon-external-link-square',
'label' => __( 'Website', 'wpex' ),
),
);
}
add_filter( 'wpex_staff_social_array', 'my_staff_social_array' );
All PHP snippets should be added via child theme's functions.php file or via a plugin (we recommend Code Snippets)