Location: PHPKode > projects > cutenews aj-fork > 167/plugins/disable-all-comments.php
<?php

/*
Plugin Name: Disable All Comments
Plugin URI: http://www.brandedthoughts.co.uk/cutewiki/index.php/Disable_All_Comments_Plugin
Description: Completely disables all commenting.
Version: 1.0
Required Framework: 1.1.4
Application: CuteNews
Author: David Carrington
Author URI: http://www.brandedthoughts.co.uk
*/

add_filter('news-show-comments','disable_all_comments', 5000);
add_filter('news-entry','dac_display');
add_filter('news-allow-comment','disable_all_comments',5000);

function disable_all_comments($allow, $h) {
	return false;
}

function dac_display($entry, $h) {
	return preg_replace('{\[com-link\].*?\[/com-link\]}i', '', $entry);
}

?>
Return current item: cutenews aj-fork