Fires once the given feed is loaded. The dynamic portion of the hook name, `$feed`, refers to the feed template name. Possible hook names include: - `do_feed_atom` - `do_feed_rdf` - `do_feed_rss` - `do_feed_rss2`
$wp_query->is_comment_feed, $feed
Sortie :
@param bool $is_comment_feed Whether the feed is a comment feed. @param string $feed The feed name.
// Ajouter une fonction au hook action 'do_feed_{$feed}'
add_action('do_feed_{$feed}', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($wp_query->is_comment_feed, $feed) {
// Votre code ici
error_log('Hook do_feed_{$feed} déclenché');
}
Chargement des actualités...