filtrod 5.5.0
wp_sitemaps_post_types
Opis — z kodu źródłowego
Filters the list of post object sub types available within the sitemap.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$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
}
// rejestracja funkcji zwrotnej
add_filter( 'wp_sitemaps_post_types', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii