_wp_get_user_contactmethods( WP_User|null $user = null )

The old private function for setting up user contact methods.


Description

Use wp_get_user_contact_methods() instead.


Top ↑

Parameters

$user

(WP_User|null) (Optional) WP_User object.

Default value: null


Top ↑

Return

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


Top ↑

Source

File: wp-includes/user.php

function _wp_get_user_contactmethods( $user = null ) {
	return wp_get_user_contact_methods( $user );
}


Top ↑

Changelog

Changelog
Version Description
2.9.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.