_wp_get_user_contactmethods

Advertisement

Private Access Private Access

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Summery Summery

The old private function for setting up user contact methods.

Syntax Syntax

_wp_get_user_contactmethods( WP_User $user = null )

Description Description

Use wp_get_user_contact_methods() instead.

Parameters Parameters

$user

(Optional) WP_User object.

Default value: null

Return Return

(string[]) Array of contact method labels keyed by contact method.

Source Source

File: wp-includes/user.php

	 * @param string[] $methods Array of contact method labels keyed by contact method.
	 * @param WP_User  $user    WP_User object.
	 */

Advertisement

Changelog Changelog

Changelog
Version Description
2.9.0 Introduced.

Advertisement

Leave a Reply