Uma área de pesquisa sobre o WordPress para devs e autores do tema



pre_get_avatar_data ›

Desde4.2.0
Obsoleton/a
apply_filters( 'pre_get_avatar_data', $args, $id_or_email )
Parâmetros: (2)
  • (array) $args Arguments passed to get_avatar_data(), after processing.
    Required: Yes
  • (mixed) $id_or_email The Gravatar to retrieve. Accepts a user ID, Gravatar MD5 hash, user email, WP_User object, WP_Post object, or WP_Comment object.
    Required: Yes
Definido em:
Codex:

Filters whether to retrieve the avatar URL early.

Passing a non-null value in the 'url' member of the return array will effectively short circuit get_avatar_data(), passing the value through the {@see 'get_avatar_data'} filter and returning early.





Fonte

$args = apply_filters( 'pre_get_avatar_data', $args, $id_or_email );