Poll WP.blogspot.com

The best way to Disable Feedback on WordPress Media Attachments

The best way to Disable Feedback on WordPress Media Attachments

Lately we launched a plugin that permits you to add a beautiful gallery carousel in WordPress without Jetpack. One of many options of that plugin is that it turns your gallery into an immersive full display screen expertise with navigation, feedback and so forth. One among our customers requested us if there was a option to do away with the feedback characteristic from these attachments. On this article, we'll present you the way to disable feedback on WordPress media attachments.

Paste the next code in your theme’s capabilities.php file or a site-specific plugin.

operate filter_media_comment_status( $open, $post_id ) 
add_filter( 'comments_open', 'filter_media_comment_status', 10 , 2 );

In the event you don’t prefer to take care of code, then merely obtain the plugin known as Disable Comments. This plugin lets you globally disable feedback on a selected publish sort resembling (Submit, Pages, Media). Simply choose the media possibility.

We hope that you just discovered this text useful.

Tutorials