get_custom_logo

FUNCTION wp-includes\general-template.php (ligne 1047) github
Returns a custom logo, linked to home unless the theme supports removing the link on the home page.

Paramètres

Entrée :
$blog_id = 0
Sortie :
@param int $blog_id Optional. ID of the blog in question. Default is the ID of the current blog.
@return string Custom logo markup.

Utilisation

// Utilisation de la fonction get_custom_logo
$result = get_custom_logo($blog_id = 0);

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

Actualités

Chargement des actualités...