user_contactmethods

过滤钩子
apply_filters( 'user_contactmethods', $methods, $user )
参数
  • (string[]) $methods Array of contact method labels keyed by contact method.
    Required:
  • (WP_User|null) $user WP_User object or null if none was provided.
    Required:
定义位置
相关勾子
user_row_actionssite_icon_attachment_metadatams_user_row_actionswp_count_commentsuser_can_richedit
相关方法
_wp_get_user_contactmethodswp_get_user_contact_methodsuser_can_create_poststr_containsuser_can_delete_postwp_count_comments
引入
2.9.0
弃用
-

Filters the user contact methods.

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