Created
August 10, 2016 20:39
-
-
Save JuanRangel/2aaa671d95edb49b4524aed35b67354d to your computer and use it in GitHub Desktop.
Add social fields to user profile
This file contains 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
add_filter( 'user_contactmethods', 'vsellis_contactmethods' ); | |
function vsellis_contactmethods( $contactmethods ) { | |
$contactmethods = [ | |
'twitter' => 'Twitter', | |
'instagram' => 'Instagram', | |
'pinterest' => 'Pinterest', | |
'linkedin' => 'Linkedin', | |
'facebook' => 'Facebook', | |
]; | |
return $contactmethods; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment