user_contactmethods

user_contactmethods

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('user_contactmethods') is found 1 times:

  • /wp-includes/user.php line 2835
    	 *
    	 * @param string[]     $methods Array of contact method labels keyed by contact method.
    	 * @param WP_User|null $user    WP_User object or null if none was provided.
    	 */
    	return apply_filters( 'user_contactmethods', $methods, $user );
    }
    
    /**
     * The old private function for setting up user contact methods.
     *
     * Use wp_get_user_contact_methods() instead.
    

See this hook used in plugins: