function success_message_submit($id) { $wpad_save_data = new wpad_save_data(); $result = $wpad_save_data->comment_publish_pending($id); if ($result == 0) { _e("Signeringen venter på moderering", 'wpad'); } else { _e("Your comment has been successfully published. Please refresh the page to see your comment.", 'wpad'); } }
function sent_mail_bulk_approve($comment_id, $status) { if ($status == 'approve') { $wpad_save_data = new wpad_save_data(); $wpad_save_data->send_mail_after_approve_comment($comment_id); } }