wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
wp_get_user_contact_methods › WordPress Function
Seit3.7.0
Veraltetn/v
› wp_get_user_contact_methods ( $user = null )
Parameter: |
|
Gibt zurück: |
|
Definiert in: |
|
Codex: |
Sets up the user contact methods.
Default contact methods were removed in 3.6. A filter dictates contact methods.Ähnliche Funktionen: _wp_get_user_contactmethods, get_user_count, wp_update_user_counts, wp_is_large_user_count, wp_filter_content_tags
Quellcode
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 ); }