WP HOOKS
filtrod 5.5.0

wp_sitemaps_post_types

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

Opis — z kodu źródłowego

Filters the list of post object sub types available within the sitemap.

Parametry

ParametrTypOpis
$post_types\WP_Post_Type[]Array of registered post type objects keyed by their name.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'wp_sitemaps_post_types', 'twoja_funkcja' );

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

Popularne w tej kategorii