comments_template_query_args

FILTER wp-includes\comment-template.php (ligne 1555) github
Filters the arguments used to query comments in comments_template().

Paramètres

Entrée :
$comment_args
Sortie :
@param array $comment_args {

Utilisation

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

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

Actualités

Chargement des actualités...