public/wordpress/wp-content/plugins/wp-courseware/includes/admin/tables/table-questions.php
/**
	 * Process Action: Delete Question.
	 *
	 * @since 4.3.0
	 */
Process Action: Delete Question.
Process Action : Delete Question .
public function process_action_delete() {
		$question_id = wpcw_get_var( 'question_id' );
		if ( $question = wpcw()->questions->delete_question( $question_id ) ) {
			$message = sprintf( __( 'Question <strong>#%s</strong> deleted successfully.', 'wp-courseware' ), $question->get_question_id() );
			wpcw_add_admin_notice_success( $message );
		}
		wp_safe_redirect( $this->page->get_url() );
		exit;
	}
public function process_action_delete ( ) { $ question_id = wpcw_get_var ( 'question_id' ) ; if ( $ question = wpcw ( ) -> questions -> delete_question ( $ question_id ) ) { $ message = sprintf ( __ ( 'Question <strong>#%s</strong> deleted successfully.' , 'wp-courseware' ) , $ question -> get_question_id ( ) ) ; wpcw_add_admin_notice_success ( $ message ) ; } wp_safe_redirect ( $ this -> page -> get_url ( ) ) ; exit ; }
Process Action: Delete Question.
Process Action : Delete Question .