pre_get_avatar
最后更新于:2021-11-27 18:47:38
apply_filters( ‘pre_get_avatar’, string|null $avatar, mixed $id_or_email, array $args )
Allows the HTML for a user’s avatar to be returned early.
参数
- $avatar
-
(string|null)
HTML for the user’s avatar. Default null. - $id_or_email
-
(mixed)
The avatar to retrieve. Accepts a user_id, Gravatar MD5 hash, user email, GC_User object, GC_Post object, or GC_Comment object. - $args
-
(array)
Arguments passed to get_avatar_url(), after processing.
源文件
文件: gc-includes/pluggable.php