• Resolved devsupportatcogora

    (@devsupportatcogora)


    Hello Marcel,

    is there any filter to add, to send the comment reports email to an email address that is not the admin one?

    Kind regards,
    Luigi

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Marcel Pol

    (@mpol)

    Hi Luigi,
    That is a good question. The admin is not always the author/editor.

    Would it be an idea to send it to the author of the post? And if that author has no capability for moderating comments, send it also to the admin?

    Thread Starter devsupportatcogora

    (@devsupportatcogora)

    Hi Marcel,

    actually I manage several site and this is a limit for lots of plugin sending the alert to the wrong email.

    Usually I set the admin email to be managed by my team, but for Editorial request would be really useful to manage their request.
    Not all the Editors are also admin, so I would like to send it straight to an appropriate email address.
    I can set a forward rule so when I receive an email to manage the comment reported, it will be forwarded to them, but if there is an hook I can use to set a different email address, it would be really helpful.

    Kind regards,
    Luigi

    Plugin Author Marcel Pol

    (@mpol)

    Hi Luigi,
    Thank you for that request.
    There is now a filter in 1.3.4 where you can set an email address for the reports.
    This is a simple hook to use it:

    function my_zeno_report_comments_admin_email() {
    	return '[email protected]';
    }
    add_filter( 'zeno_report_comments_admin_email', 'my_zeno_report_comments_admin_email' );
    Thread Starter devsupportatcogora

    (@devsupportatcogora)

    You’re amazing! Thanks

    can we send it to multiple emails?

    nvm, i found a solution for multiple emails

    function my_zeno_report_comments_admin_email() {
    	$editors = get_users( array ( 'role' => 'editor' ) );
    	$emails = array ();
    	foreach ( $editors as $editor ) $emails[] = $editor->user_email;
    	return $emails;
    }
    add_filter( 'zeno_report_comments_admin_email', 'my_zeno_report_comments_admin_email' );
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Report to a different email address’ is closed to new replies.