wp_sitemaps_stylesheet_index_url

FILTER wp-includes\sitemaps\class-wp-sitemaps-renderer.php (ligne 115) github
Filters the URL for the sitemap index stylesheet. If a falsey value is returned, no stylesheet will be used and the "raw" XML of the sitemap index will be displayed.

Paramètres

Entrée :
$sitemap_url
Sortie :
@param string $sitemap_url Full URL for the sitemaps index XSL file.

Utilisation

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

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

Actualités

Chargement des actualités...