filtrod 5.5.0
wp_sitemaps_stylesheet_index_url
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
| Parametr | Typ | Opis |
|---|---|---|
$sitemap_url | string | Full 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
}
// rejestracja funkcji zwrotnej
add_filter( 'wp_sitemaps_stylesheet_index_url', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii