4 Easy Methods To Disable Comments Notifications In WordPress

        4 Easy Methods To Disable Comments Notifications In WordPress

Are you fed up with annoying comments or notification emails that you get from WordPress?

If yes!

Don’t worry- we come back with a sold solution to resolve your issue. Here in the guiding blog article, we’ll teach you 4 easy methods to disable or turn off comments notifications through your WordPress admin panel.

Method#1: Disable Comments in your WordPress’s All Published Posts & Pages

  1. Log in to the WordPress Admin Panel

          Easy Methods To Disable Comments Notifications In WordPress

 

  1. Go to the “Comments” to delete existing comments on all published posts & pages
  2. Select all the comments by checking the box located in the left corner of the table
  3. Select Move to Trash from the Bulk Actions by drop-down box
  4. Click Apply

 

         Easy Methods To Disable Comments Notifications In WordPress

 

Method#2: Disable Comments on your WordPress’s Future Posts

In method#1you learned to delete WordPress comments on your existing posts and pages, but it won’t prevent people to post comments on new articles.

For future planning to avoid such comments on your posts and pages you need to take further steps;

  1. From your WordPress admin area, go to SettingsDiscussion

 

          Easy Methods To Disable Comments Notifications In WordPress

 

     2. Under Default post settings, uncheck the Allow people to submit comments on new posts

 

        Easy Methods To Disable Comments Notifications In WordPress

 

That’s it!

After applying the above setting, now you won’t receive annoying comment notifications in your future posts.

Method#3: Disable Comments on Email

In the “Discussion” menu, you’d come across all the settings for comments.

  1. Go to the “Email me whenever” section.
  2. You’d find out “Anyone posts a comment” like this:

 

         Easy Methods To Disable Comments Notifications In WordPress

 

  3. In order to disable the comments notifications emails in WordPress, you have to unlock both options like below-attached image

 

         Easy Methods To Disable Comments Notifications In WordPress

 

That’s it!

Now you won’t receive annoying comment notifications in your email anymore.

Method#4: Disable Comments on your WordPress Media

When you upload media files to your website, WordPress automatically creates individual pages. On these pages, you’ll receive comments just like a regular post or page. To disable comments on media files you can adopt 2 easy steps;

From your WordPress admin area, go to Media > Library

  1. Click the media file you want to Edit
  2. Select Edit more details in the right panel.
  3. Under the Discussion section, uncheck the box next to Allow comments.
  4. In the Save section, click Update

 

        Easy Methods To Disable Comments Notifications In WordPress

 

If you have multiple media attachments on your site, this can take time. So this option is less effective for sites that have large media libraries.

 To quickly disable comments on all media at once you have another option of code.

Note: keep in mind, that incorrectly adding code snippets to themes can damage your sites. To be safe, make sure to create a backup to save your site from data loss. Create a child theme to save the parent theme’s settings

  1. To find the PHP file in your WordPress, go to Appearance > Theme Editor

 

        Easy Methods To Disable Comments Notifications In WordPress

 

  2. Select php on the right

 

        Easy Methods To Disable Comments Notifications In WordPress

 

  1. Copy & paste the following code at the bottom of the file:

 

function disable_media_comment( $open, $post_id ) {

$post = get_post( $post_id );

if( $post->post_type == 'attachment' ) {

return false;

}

return $open;

}

add_filter( 'comments_open', 'disable_media_comment', 10 , 2 );

 

  1. Click Update File to save the changes

In case you have any confusion, please don’t hesitate to contact Pakchamp web panel via the live chat option on our website https://pakchamp.com

  • 78 Los Usuarios han Encontrado Esto Útil
¿Fue útil la respuesta?