filtrod 5.5.0
wp_sitemaps_taxonomies_pre_max_num_pages
Opis — z kodu źródłowego
Filters the max number of pages for a taxonomy sitemap before it is generated.
Passing a non-null value will short-circuit the generation, returning that value instead.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$max_num_pages | int | null | The maximum number of pages. Default null. |
$taxonomy | string | Taxonomy name. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_sitemaps_taxonomies_pre_max_num_pages', '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_taxonomies_pre_max_num_pages', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii