How to prevent a post from being deleted?
For auditing issue, I only want a post can be trashed, but not deleted – for all users. So I have a plugin like add_action(‘before_delete_post’, function($id) { wp_die(0); }); But seems not all delete action are ajax, so it will be show a black screen with return an error page with result “0” Feature wise … Read more