• Resolved nichinu

    (@nichinu)


    I love the discord integration that uses the discord bot to add the review in the channel. I want to know if it’s possible to customize the content that is shown there. Like remove the customer email id and ip address. And if possible include the extra field created using custom theme form.

    That way I can make the channel public to all users without having to reveal any customer’s sensitive information.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    You can remove the email and IP address from the Discord message with a code snippet like this:

    add_filter('site-reviews/discord/fields', function ($fields) {
        unset($fields['email']);
        unset($fields['ip_address']);
        return $fields;
    });

    If you need help with the Review Forms addon, please use the Support Form on your Nifty Plugins account as I do not provide support for addon features here.

    Thread Starter nichinu

    (@nichinu)

    Hey,
    This worked perfectly.
    Is there a way to remove the “edit review” link that appears at the end of the discord message as well?

    Plugin Author Gemini Labs

    (@geminilabs)

    Try this:


    add_filter('site-reviews/discord/notification', function (array $notification) {
    foreach ($notification['embeds'] as $index => $embed) {
    unset($notification['embeds'][$index]['fields']['moderation_links']);
    }
    return $notification;
    });
    Thread Starter nichinu

    (@nichinu)

    Hey, this is not working.
    Both the “Approve Review | Edit Review” part is still showing up.

    Plugin Author Gemini Labs

    (@geminilabs)

    What about this?

    add_filter('site-reviews/discord/notification', function (array $notification) {
    foreach ($notification['embeds'] as $index => $embed) {
    array_pop($notification['embeds'][$index]['fields']);
    }
    return $notification;
    });
    Thread Starter nichinu

    (@nichinu)

    Yesss.. Thanks a lot.
    Working perfectly now.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.