wp_sitemaps_taxonomies

FILTER wp-includes\sitemaps\providers\class-wp-sitemaps-taxonomies.php (ligne 47) github
Filters the list of taxonomy object subtypes available within the sitemap.

Paramètres

Entrée :
$taxonomies
Sortie :
@param WP_Taxonomy[] $taxonomies Array of registered taxonomy objects keyed by their name.

Utilisation

// Modifier la valeur avec le filtre 'wp_sitemaps_taxonomies'
add_filter('wp_sitemaps_taxonomies', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($taxonomies) {
    // Modifier la valeur
    return $taxonomies;
}

Actualités

Chargement des actualités...