WP HOOKS
filtrod 5.5.0

wp_sitemaps_users_pre_max_num_pages

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

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

ParametrTypOpis
$max_num_pagesint | nullThe 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
}

Popularne w tej kategorii