Filters a post's comment count before it is updated in the database.
null, $old, $post_id
Sortie :
@param int|null $new The new comment count. Default null. @param int $old The old comment count. @param int $post_id Post ID.
// Modifier la valeur avec le filtre 'pre_wp_update_comment_count_now'
add_filter('pre_wp_update_comment_count_now', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(null) {
// Modifier la valeur
return null;
}
Chargement des actualités...