WP HOOKS
filtrod 5.5.0

wp_sitemaps_posts_entry

Args 3Plik wp-includes/sitemaps/providers/class-wp-sitemaps-posts.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the sitemap entry for an individual post.

Parametry

ParametrTypOpis
$sitemap_entryarraySitemap entry for the post.
$post\WP_PostPost object.
$post_typestringName of the post_type.

Wywołanie

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

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

Popularne w tej kategorii