Forum Replies Created

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

    (@dagda99)

    Nevermind, i solved it, but I leave the code that fixed it for me in case someone in the community has a similar problem and needs the solution.

    
    <?php 
    function false_upvote($comment_id) {
    update_comment_meta( $comment_id, 'wpdiscuz_votes', $meta_value-- );
    }
    
    function false_downvote($comment_id) {
    update_comment_meta( $comment_id, 'wpdiscuz_votes', $meta_value++ );
    
    }
    ?>
    
Viewing 1 replies (of 1 total)