_wp_get_user_contactmethods()
The old private function for setting up user contact methods.
Use wp_get_user_contact_methods() instead.
Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.
No Hooks.
Return
String[]
. Array of contact method labels keyed by contact method.
Usage
_wp_get_user_contactmethods( $user );
- $user(WP_User|null)
- WP_User object.
Default: null
Changelog
Since 2.9.0 | Introduced. |
_wp_get_user_contactmethods() wp get user contactmethods code WP 6.7.1
function _wp_get_user_contactmethods( $user = null ) { return wp_get_user_contact_methods( $user ); }