首页 WordPress函数大全 rest_get_avatar_urls()

rest_get_avatar_urls()

2020-05-02 / 5005阅 / 悠然

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

rest_get_avatar_urls( mixed $id_or_email )

检索各种大小的头像网址。

描述

See also See also

  • get_avatar_url()

Top ↑

参数

$id_or_email

(mixed)
(Required)
The Gravatar to retrieve a URL for. Accepts a user_id, gravatar md5 hash, user email, WP_User object, WP_Post object, or WP_Comment object.

返回

(array) Avatar URLs keyed by size. Each value can be a URL string or boolean false.

大家谈论
    我的见解