Disable ALL email notifications at once
-
Hi,
Is there are function\code that I can add to my theme in order to disable all email notifications from the forums (users AND admin)?
Thank you!
-
depends on why you are getting them at the moment.
You can turn off all subscriptions for the whole site in
dashboard>settings>forums>Allow users to subscribe to forums and topics
If you just mean for you as a user or admin, then just unsubscribe from forums and topics in your profile
additionally you may have other bbpress plugins that are sending you emails.
Hi Robin,
Thank you very much for your fast reply.
I mean I don’t anyone to receive any email from the forum: every user that posts a question in the forum, as well as the admin notices.
I don’t have any other plugins that integrates with bbPress (except Akismet).
These are my current settings: https://i.imgur.com/dywXsPl.png
Under these settings, the users can still see the checkbox for receiving emails when there is a comment. I don’t want this checkbox checked, I don’t want it at all.
Thanks again 🙂
add this to your theme’s custom css settings
.bbp_topic_subscription { display : none !important ; }
Hi,
This won’t fix the issue, it will only hide this checkbox in css, but it still there, it’s still checked, and the admin and the user will still get emails. Again, we don’t want anyone to get any emails. We want to stop all the emails at once. Right now, we are still getting emails.
this box is not ticked by default
but if you really want this box gone then,
find
wp-content/plugins/bbpress/templates/default/bbpress/form-topic.phptransfer this to your pc and edit to remove
<?php do_action( 'bbp_theme_before_topic_form_subscriptions' ); ?> <p> <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe" <?php bbp_form_topic_subscribed(); ?> /> <?php if ( bbp_is_topic_edit() && ( bbp_get_topic_author_id() !== bbp_get_current_user_id() ) ) : ?> <label for="bbp_topic_subscription"><?php esc_html_e( 'Notify the author of follow-up replies via email', 'bbpress' ); ?></label> <?php else : ?> <label for="bbp_topic_subscription"><?php esc_html_e( 'Notify me of follow-up replies via email', 'bbpress' ); ?></label> <?php endif; ?> </p> <?php do_action( 'bbp_theme_after_topic_form_subscriptions' ); ?>
and save
create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpresswhere %your-theme-name% is the name of your theme
Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/form-topic.phpbbPress will now use this template instead of the original
then repeat for form-reply.php removing
<?php do_action( 'bbp_theme_before_reply_form_subscription' ); ?> <p> <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe"<?php bbp_form_topic_subscribed(); ?> /> <?php if ( bbp_is_reply_edit() && ( bbp_get_reply_author_id() !== bbp_get_current_user_id() ) ) : ?> <label for="bbp_topic_subscription"><?php esc_html_e( 'Notify the author of follow-up replies via email', 'bbpress' ); ?></label> <?php else : ?> <label for="bbp_topic_subscription"><?php esc_html_e( 'Notify me of follow-up replies via email', 'bbpress' ); ?></label> <?php endif; ?> </p> <?php do_action( 'bbp_theme_after_reply_form_subscription' ); ?>
Got it. Thanks 🙂 What about the admin? how can I disable notifications for the admin?
admins don’t get subscription emails by default either
hi Robin. Can we add these 2 codes to functions.php of the child theme?
sorry no, they need to be changed files, but in your child theme as stated.
thank you for your answer.
- You must be logged in to reply to this topic.