WordPress.org

Support

Support » Plugins and Hacks » WP Customer Reviews » [Resolved] Are all pending comment approvals always sent to the site admin?

[Resolved] Are all pending comment approvals always sent to the site admin?

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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.

    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

    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.

    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!

    Cool, glad it worked!

    It works great!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] Are all pending comment approvals always sent to the site admin?’ is closed to new replies.
Skip to toolbar