Viewing 1 replies (of 1 total)
  • Thread Starter riskamudrika

    (@riskamudrika)

    I’ve got a solution, Just in case anyone needs the code, i put this in function.php

    function custom_comments_clauses( $clauses ){
        remove_filter( 'comments_clauses', 'custom_comments_clauses' );
        $clauses['where'] .= "AND comment_status='open'"; // EDIT
        return $clauses;
    }
    add_filter( 'comments_clauses', 'custom_comments_clauses' );
Viewing 1 replies (of 1 total)
  • The topic ‘Excluding comment if comment is close’ is closed to new replies.