' . __("I'm not a spammer", 'antispam-simple') . "\n" . 'This plugin created by Alexei91'; endif; } function antispam1_result($id) { if (!is_user_logged_in()) : if (!$_POST['nospam']) : $updated_status = 'trash'; wp_set_comment_status($id, $updated_status); wp_die( __('You are trying to leave the spam message!', 'antispam-simple') ); endif; endif; } add_action('comment_form', 'antispam1_checkbox'); add_action('comment_post', 'antispam1_result'); //localization load_plugin_textdomain( 'antispam-simple', false, '/'.basename(dirname(__FILE__)).'/languages' ); ?>