get_header_image_tag_attributes

FILTER wp-includes\theme.php (ligne 1353) github
Filters the list of header image attributes.

Paramètres

Entrée :
$attr, $header
Sortie :
@param array  $attr   Array of the attributes for the image tag.
@param object $header The custom header object returned by 'get_custom_header()'.

Utilisation

// Modifier la valeur avec le filtre 'get_header_image_tag_attributes'
add_filter('get_header_image_tag_attributes', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($attr) {
    // Modifier la valeur
    return $attr;
}

Actualités

Chargement des actualités...