WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about user_contactmethods

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/user.php apply_filters 2795 /**
* 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.
*/

Hook Parameters

Parameter Type Name Description
string[] $methods Array of contact method labels keyed by contact method.
WP_User|null $user WP_User object or null if none was provided.