Skip to Content

user_contact_methods()

Remove outdated contact fields and add new, modern ones.

PHP July 8, 2017

Usage

This function runs automatically, so it is not called manually. Is this incorrect?

Source File

Located in /libs/Admin/Users.php on line 205.

No Hooks

This function does not have any filters or actions available. Request one?
PHP
        public function user_contact_methods($contact_methods){
            unset($contact_methods['yim']);
            unset($contact_methods['aim']);
            unset($contact_methods['jabber']);
            $contact_methods['facebook'] = 'Facebook Username';
            $contact_methods['twitter'] = 'Twitter Username <small>(Without @)</small>';
            $contact_methods['linkedin'] = 'LinkedIn ID';
            $contact_methods['youtube'] = 'YouTube Channel ID';
            $contact_methods['instagram'] = 'Instagram Username';
            $contact_methods['pinterest'] = 'Pinterest Username';

            return $contact_methods;
        }

Override

This function can not be short-circuited with an override filter. Request one?