Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author gVectors Team

    (@gvectors-team)

    Hi apsilva028,
    I’m sorry but there is no such an option, we don’t have an easy clue for this.

    Thread Starter apsilva028

    (@apsilva028)

    How could I incorporate this code into the plugin?

    <?php
    global $current_user;
    $args = array(‘user_id’ => $current_user->ID);
    $usercomment = get_comments($args);
    if(count($usercomment) >= 1){
    echo ‘disabled’;
    } else {
    comment_form();
    }
    ?>

    I basically want the comment to not appear is usercomment <=1

    Plugin Author gVectors Team

    (@gvectors-team)

    Ok, if you good in PHP then you’ll be able to find all necessary variables in /wpdiscuz/templates/comment/comment-form.php file.

    Please find this line:

    <?php $wpdiscuz->helper->formBuilder('main', '0_0', $commentsCount, $current_user); ?>

    And put it in your ELSE condition. The $current_user already exists.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Comment-ability’ is closed to new replies.