Reply to Review settings

This topic contains 6 replies, has 3 voices, and was last updated by  Giri 7 years, 8 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #371252

    Phoebe Morgan
    Expired Member
    Post count: 38

    Hi I have the Supreme Directory Theme with my Geodirectory site. I have the Multi ratings and reviews plugin activated. It seems that anyone who has registered a username can click “Reply” to a review, is there a way I can restrict replying to only the business owner? I’m just worried the replies might get very difficult to manage and might get out of hand if anyone can add their two cents for example if someone writes a bad review and then a heap of people follow it up with replies like “yes terrible”, “you should sue”, “let’s boycott” etc.

    #371263

    Guust
    Moderator
    Post count: 29970

    Untick
    WP Settings > Discussion > Enable threaded (nested) comments x levels deep

    Thanks

    #371277

    Phoebe Morgan
    Expired Member
    Post count: 38

    That removed the reply function thank you. However, does this now mean that a business owner cannot reply to reviews? Do I have to allow everyone to be able to reply or no-one?

    #371281

    Guust
    Moderator
    Post count: 29970

    I’ll get Giri to have a look at your question after the weekend.
    Thanks

    #371416

    Giri
    Expired Member
    Post count: 3155

    Hi there,

    Try adding this code in code snippets.

    https://wordpress.org/plugins/code-snippets/

    
    
    add_filter('comment_reply_link', 'ds_modify_comment_reply_link', 10, 4);
    function ds_modify_comment_reply_link($link, $args, $comment, $post) {
        $post_types = geodir_get_posttypes();
        if ($post_types && in_array($post->post_type, $post_types)) {
            if ($post->post_author != get_current_user_id()) {
                $link = "";
            }
        }
        return $link;
    }

    Let me how that goes.

    Thanks

    #371644

    Phoebe Morgan
    Expired Member
    Post count: 38

    Initial tests are showing that it worked perfectly! Thanks Giri! I’m sure this is something that would be great to incorporate into Geodirectory as standard!

    #371661

    Giri
    Expired Member
    Post count: 3155

    You are welcome 🙂

Viewing 7 posts - 1 through 7 (of 7 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount