WP HOOKS
filtrod 5.5.0

wp_sitemaps_index_entry

Args 4Plik wp-includes/sitemaps/class-wp-sitemaps-provider.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the sitemap entry for the sitemap index.

Parametry

ParametrTypOpis
$sitemap_entryarraySitemap entry for the post.
$object_typestringObject empty name.
$object_subtypestringObject subtype name. Empty string if the object type does not support subtypes.
$pageintPage number of results.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_sitemaps_index_entry', 'twoja_funkcja', 10, 4 );

function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
	// Twój kod
}

Popularne w tej kategorii