get_header_image_tag

FUNCTION wp-includes\theme.php (ligne 1244) github
Filters the header image URL.

Paramètres

Entrée :
$attr = array(
Sortie :
@param string $url Header image URL.
@param array $attr Optional. Additional attributes for the image tag. Can be used
@return string HTML image element markup or empty string on failure.

Utilisation

// Utilisation de la fonction get_header_image_tag
$result = get_header_image_tag($attr = array();

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

Actualités

Chargement des actualités...