wpseek.com
				A WordPress-centric search engine for devs and theme authors
			wp_get_user_contact_methods › WordPress Function
Since3.7.0
Deprecatedn/a
› wp_get_user_contact_methods ( $user = null )
| Parameters: | 
 | 
| Returns: | 
 | 
| Defined at: | 
 | 
| Codex: | |
| Change Log: | 
 | 
Sets up the user contact methods.
Default contact methods were removed for new installations in WordPress 3.6 and completely removed from the codebase in WordPress 6.9. Use the {@see 'user_contactmethods'} filter to add or remove contact methods.Related Functions: _wp_get_user_contactmethods, wp_update_user_counts, get_user_count, wp_get_recent_posts, wp_filter_content_tags
	Source
function wp_get_user_contact_methods( $user = null ) {
	$methods = array();
	/**
	 * Filters the user contact methods.
	 *
	 * @since 2.9.0
	 *
	 * @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 );
}