filtrod 5.5.0
wp_sitemaps_add_provider
Opis — z kodu źródłowego
Filters the sitemap provider before it is added.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$provider | \WP_Sitemaps_Provider | Instance of a WP_Sitemaps_Provider. |
$name | string | Name 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
}
// 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