Skip to Content
Menu

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?

Was this page helpful? Yes No


    A feedback message is required to submit this form.


    Please check that you have entered a valid email address.

    Enter your email address if you would like a response.

    Thank you for your feedback!

    Source File

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

    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?