I’m current removing some user fields with the following code in the functions.php file:
function adjust_contact_methods( $contactmethods ) {
unset($contactmethods['aim']);
unset($contactmethods['jabber']);
unset($contactmethods['yim']);
unset($contactmethods['twitter']);
return $contactmethods;
}
add_filter('user_contactmethods','adjust_contact_methods',10,1);
I’d like to additionally remove the website and Google+ fields, but I can’t find the correct keyword. Any advice?
Is what I needed to add to my above code.
The following function is from WordPress 3.4.1 default installation source file ‘user.php’ starting at line 1481.
Additional fields might have been set vi addfilter hooks.
$user_contactmethods
is an array.Try the following code to output the array in one of your pages.
You will see an array. figure out the key related to Google Plus and unset it.