Removing Facebook contact field from user contact not working
Firs things first… always, always enable debugging. Secondly, you should accept the $user parameter in your callback – otherwise you are always checking the logged in user, not the user within the current context: function modify_user_contact_methods( $methods, $user ) { if ( ! $user instanceof WP_User ) { if ( ! $user = wp_get_current_user() ) … Read more