filtrod 5.5.0
wp_sitemaps_index_entry
Opis — z kodu źródłowego
Filters the sitemap entry for the sitemap index.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$sitemap_entry | array | Sitemap entry for the post. |
$object_type | string | Object empty name. |
$object_subtype | string | Object subtype name. Empty string if the object type does not support subtypes. |
$page | int | Page 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
}
// 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