get_avatar_url

FUNCTION wp-includes\link-template.php (ligne 4277) github
Filters the short link anchor tag for a post.

Paramètres

Entrée :
$id_or_email, $args = null
Sortie :
@param string $link      Shortlink anchor tag.
@param string $shortlink Shortlink URL.
@param string $text      Shortlink's text.
@param string $title     Shortlink's title attribute. Unused.
@param mixed $id_or_email The avatar to retrieve a URL for. Accepts a user ID, Gravatar SHA-256 or MD5 hash,
@param array $args {
@return string|false The URL of the avatar on success, false on failure.

Utilisation

// Utilisation de la fonction get_avatar_url
$result = get_avatar_url($id_or_email, $args = null);

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...