Comment notifications sent to Community Users?

Home Forums Calendar Products Events Calendar PRO Comment notifications sent to Community Users?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #994263
    intsculpturectr
    Participant

    Hi All,

    I’ve realized that notifications of comments are being sent to the users who submit events through the Community Events Plugin. They ask them to moderate the comments, which I don’t believe they even have the ability to do. Is this a setting easily switched off? We definitely don’t want our subscribers getting these notifications.

    Thanks,

    Karin J.

    #994374
    Geoff
    Member

    Hey Karin! Nice to see you again and hope all is well. 🙂

    Good question. Does the same thing happen if you head to Settings > Discussion from the WordPress dashboard and disable the “Email me whenever anyone posts a comment”?

    I believe that is the only way to make that happen on a WordPress without some customizations, but I’m happy to check that out further as well. Let’s at least start with that setting and see where that takes us. 🙂

    Thanks!
    Geoff

    #994396
    Geoff
    Member

    Hey, just following up after getting some feedback from the team. While this may not do the trick right away, it could provide the framework for disabling comments for those users:

    [php]
    function before_ce_editor() {
    add_action( ‘save_post_tribe_events’, ‘set_comment_status_off’ );
    }
    function set_comment_status_off( $post_id ) {
    wp_update_post( $post_id, array(
    ‘comment_status’ => ‘closed’
    ) );
    }

    add_action( ‘tribe_community_before_event_page’, ‘before_ce_editor’ );
    [/php]

    Cheers!
    Geoff

    #994758
    intsculpturectr
    Participant

    Thanks Geoff, really helpful info. I’ll give the setting a try. We are checking daily for comments anyway so notifications are not necessary. Thanks!

    #995018
    Geoff
    Member

    My pleasure and please do keep me posted! Hopefully the setting does the trick but, if not, give that snippet a try. 🙂

    Geoff

    #999110
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Comment notifications sent to Community Users?’ is closed to new replies.