wp_get_user_contact_methods() – Set up the user contact methods.
You appear to be a bot. Output may be restricted
Description
Sets up the user contact methods.
Default contact methods were removed in 3.6. A filter dictates contact methods.
Usage
$string[] = wp_get_user_contact_methods( $user );
Parameters
- $user
- ( WP_User|null ) optional – Optional. WP_User object.
Returns
string[] Array of contact method labels keyed by contact method.
Source
File name: wordpress/wp-includes/user.php
Lines:
1 to 20 of 20
function wp_get_user_contact_methods( $user = null ) { $methods = array(); if ( get_site_option( 'initial_db_version' ) < 23588 ) { $methods = array( 'aim' => __( 'AIM' ), 'yim' => __( 'Yahoo IM' ), 'jabber' => __( 'Jabber / Google Talk' ), ); } /** * 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 ); }