wpseek.com
A WordPress-centric search engine for devs and theme authors



user_contactmethods › WordPress Filter Hooks

Since2.9.0
Deprecatedn/a
apply_filters( 'user_contactmethods', $methods, $user )
Parameters: (2)
  • (string[]) $methods Array of contact method labels keyed by contact method.
    Required: Yes
  • (WP_User|null) $user WP_User object or null if none was provided.
    Required: Yes
Defined at:
Codex:

Filters the user contact methods.





Source

return apply_filters( 'user_contactmethods', $methods, $user );