WP HOOKS
filtrod 5.5.0

wp_sitemaps_stylesheet_index_url

Args 1Plik wp-includes/sitemaps/class-wp-sitemaps-renderer.phpDokumentacja WP ↗

Opis — z kodu źródłowego

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.

Parametry

ParametrTypOpis
$sitemap_urlstringFull URL for the sitemaps index XSL file.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'wp_sitemaps_stylesheet_index_url', 'twoja_funkcja' );

function twoja_funkcja($param_1) {
	// Twój kod
}

Popularne w tej kategorii