WP HOOKS
filtrod 5.5.0

wp_sitemaps_add_provider

Args 2Plik wp-includes/sitemaps/class-wp-sitemaps-registry.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the sitemap provider before it is added.

Parametry

ParametrTypOpis
$provider\WP_Sitemaps_ProviderInstance of a WP_Sitemaps_Provider.
$namestringName of the sitemap provider.

Wywołanie

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

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

Popularne w tej kategorii