wp_sitemaps_posts_entry

FILTER wp-includes\sitemaps\providers\class-wp-sitemaps-posts.php (ligne 164) github
Filters the sitemap entry for an individual post.

Paramètres

Entrée :
$sitemap_entry, $post, $post_type
Sortie :
@param array   $sitemap_entry Sitemap entry for the post.
@param WP_Post $post          Post object.
@param string  $post_type     Name of the post_type.

Utilisation

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

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

Actualités

Chargement des actualités...