• Resolved commontater

    (@commontater)


    Hello,

    Just installed Site Reviews on my book’s website to capture reviews of the book.

    So far, it works great.

    The reviews collect the name and email address of each reviewer along with their review. How can I add these names/emails to my site’s users?

    FYI my site uses Mailpoet, in case that info is needed.

    Help and hints are appreciated!

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

    (@geminilabs)

    You’ll probably want to make use of the “site-reviews/review/created” hook for this.

    Thread Starter commontater

    (@commontater)

    Hi,

    Thanks for the tip about using a hook.

    I’m not a programmer, so I wouldn’t know what code to enter in place of “// do something here”.

    Please provide some guidance on this.

    Your help is appreciated.

    Plugin Author Gemini Labs

    (@geminilabs)

    It sounds like you want to add a reviewer’s name and email to your Mailpoet subscriber list after they submit a review.

    As this is dealing with a third-party plugin, you may need to contact the Mailpoet team for support as you will probably need to use the Mailpoet API to do this.

    https://kb.mailpoet.com/article/195-add-subscribers-through-your-own-form-or-plugin

    What I can tell you is how to get the name and email of the reviewer in the hook I mentioned above:

    add_action('site-reviews/review/created', function ($review, $command) {
        if (!$review->terms) {
            return; // They did not accept the terms
        }
        $name = $review->author;
        $email = $review->email;
        // do something with the name and email here...
    }, 10, 2);
    • This reply was modified 1 year, 4 months ago by Gemini Labs.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘capture emails of reviewers’ is closed to new replies.