WordPress.org

Ready to get started?Download WordPress

Forums

WP Customer Reviews
[resolved] Are all pending comment approvals always sent to the site admin? (7 posts)

  1. colourstone
    Member
    Posted 1 year ago #

    Are all pending comment approvals always sent to the site admin? Or did I miss a setting? I guess I thought that all emails sent for approval were sent to the "Business Email" shown On the Business Information form in settings.
    Thanks,
    Brent

    http://wordpress.org/extend/plugins/wp-customer-reviews/

  2. essaysnark
    Member
    Posted 1 year ago #

    Yes, alerts about pending reviews go to the site admin. The Business Email setting is for the hcard (mostly designed to optimize local search results).

    Theoretically you could hardcode a different email address for the emails to go to into the plugin file but then it would get overwritten if you update to any future upgrades. Not sure what the developer's plans are for doing more with the plugin, given how this support board is a bit of a ghost town lately. If you want to do the hack I can tell you what to change.

  3. colourstone
    Member
    Posted 1 year ago #

    Hey essay thanks for the reply.
    Yea I've noticed that there doesn't seem to be much if any support. I'm actually using this in a multisite. I don't mind hacking except for the fact that I would need to use different email addresses per site. So if there was a way to use the email from the hcard that would be great. Thanks again for you kind help.
    Brent

  4. essaysnark
    Member
    Posted 1 year ago #

    Brent, I'm not running multisite so I don't know if this will work for you, but it seems to be working for me. This is untested and I can't guarantee it won't break something else (but I think it should be safe).

    In the plugin file wp-customer-reviews.php (should be somewhere like /wp-content/plugins/wp-customer-reviews/ or wherever multisite puts plugin files ), change line 1199:

    @wp_mail(get_bloginfo('admin_email'), "WP Customer Reviews: New Review Posted on " . date('m/d/Y h:i'), "A new review has been posted for " . $this->options['business_name'] . " via WP Customer Reviews. \n\nYou will need to login to the admin area and approve this review before it will appear on your site.\n\n{$admin_link}");

    to this:

    @wp_mail($this->options['business_email'], "WP Customer Reviews: New Review Posted on " . date('m/d/Y h:i'), "A new review has been posted for " . $this->options['business_name'] . " via WP Customer Reviews. \n\nYou will need to login to the admin area and approve this review before it will appear on your site.\n\n{$admin_link}");

    Of course, make a backup of the plugin first, since you're changing its core code. And remember of course that this will get overwritten if/when the plugin is upgraded.

  5. colourstone
    Member
    Posted 1 year ago #

    Hey essaysnark it worked beautifully!
    Thank you so much!!
    I had already tweaked some wording in the wp-customer-reviews.php page, so I'll keep an eye on any potential updates. I tested it and the email came thru fine.
    Greatly appreciated!

  6. essaysnark
    Member
    Posted 1 year ago #

    Cool, glad it worked!

  7. colourstone
    Member
    Posted 1 year ago #

    It works great!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic