public function deleteMultiAction() { if (!current_user_can('wpProQuiz_delete_quiz')) { wp_die(__('You do not have sufficient permissions to access this page.')); } $mapper = new WpProQuiz_Model_QuestionMapper(); if (!empty($_POST['ids'])) { foreach ($_POST['ids'] as $id) { $mapper->setOnlineOff($id); } } $this->showAction(); }