首页 WordPress函数大全 get_profile()

get_profile()

2020-05-01 / 3601阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

Warning: This function has been deprecated. Use get_the_author_meta() instead.

get_profile( string $field, false|int $user = false )

Retrieve user data based>

Contents

  • Description
    • See also
    • Parameters
    • Return
    • Source
    • Changelog
  • Related
    • Uses
  • User Contributed Notes

描述

See also See also

  • get_the_author_meta()

Top ↑

参数

$field

(string)
(Required)
User meta field.

$user

(false|int)
(Optional)
User ID to retrieve the field for. Default false (current user).

Default value: false

返回

(string) The author's field from the current author's DB object.

大家谈论
    我的见解