filtrod 5.5.0
wp_sitemaps_max_urls
Opis — z kodu źródłowego
Filters the maximum number of URLs displayed on a sitemap.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$max_urls | int | The maximum number of URLs included in a sitemap. Default 2000. |
$object_type | string | Object type for sitemap to be filtered (e.g. 'post', 'term', 'user'). |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_sitemaps_max_urls', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_sitemaps_max_urls', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}