filtrod 5.5.0
wp_sitemaps_users_pre_max_num_pages
Opis — z kodu źródłowego
Filters the max number of pages for a user sitemap before it is generated.
Returning a non-null value will effectively short-circuit the generation, returning that value instead.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$max_num_pages | int | null | The maximum number of pages. Default null. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'wp_sitemaps_users_pre_max_num_pages', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'wp_sitemaps_users_pre_max_num_pages', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii