MinnPost / minnpost-wordpress

MinnPost.com in WordPress
GNU General Public License v2.0
2 stars 0 forks source link

Reject comments #42

Closed jonathanstegall closed 6 years ago

jonathanstegall commented 6 years ago

We need a way to add a 'reject' link so moderators can mark a comment as rejected. Unapproved is not good enough because then it's not possible to see which comments have and have not already been reviewed.

jonathanstegall commented 6 years ago

There is a possible option of just adding rejected comments to the trash, and disabling the automatic empty feature.

http://www.wpbeginner.com/beginners-guide/how-to-limit-or-disable-automatic-empty-trash-in-wordpress/

function wpb_remove_schedule_delete() {
    remove_action( 'wp_scheduled_delete', 'wp_scheduled_delete' );
}
add_action( 'init', 'wpb_remove_schedule_delete' );
jonathanstegall commented 6 years ago

We can also use define('EMPTY_TRASH_DAYS', 7); in wp-config.php if we do ever want to delete stuff.