Last active
August 29, 2015 14:01
-
-
Save cdils/df9ced89306ca27580f6 to your computer and use it in GitHub Desktop.
Add custom contact fields in the WordPress User Edit screen.
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
// Customize the contact information fields available to users | |
add_filter( 'user_contactmethods', 'change_contact_info', 10, 1); | |
function change_contact_info( $contactmethods ) { | |
$contactmethods['website_title'] = 'Website Title'; | |
$contactmethods['twitter'] = 'Twitter'; | |
$contactmethods['facebook'] = 'Facebook'; | |
$contactmethods['linkedin'] = 'Linked In'; | |
return $contactmethods; | |
} |
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
asdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment