public/wordpress/wp-content/plugins/wp-courseware/includes/admin/tables/table-questions.php
/**
	 * Process Action: Bulk Delete.
	 *
	 * @since 4.3.0
	 */
Process Action: Bulk Delete.
Process Action : Bulk Delete .
public function process_action_bulk_delete() {
		$ids = isset( $_GET['question_id'] ) ? $_GET['question_id'] : false;
		if ( ! is_array( $ids ) ) {
			$ids = array( $ids );
		}
		$ids = array_map( 'absint', $ids );
		if ( empty( $ids ) || ( count( $ids ) === 1 && ! $ids[0] ) ) {
			return;
		}
		foreach ( $ids as $id ) {
			wpcw()->questions->delete_question( $id );
		}
		wpcw_add_admin_notice_success( esc_html__( 'Questions deleted successfully!', 'wp-courseware' ) );
		wp_safe_redirect( $this->page->get_url() );
		exit;
	}
public function process_action_bulk_delete ( ) { $ ids = isset ( $ _GET [ 'question_id' ] ) ? $ _GET [ 'question_id' ] : false ; if ( ! is_array ( $ ids ) ) { $ ids = array ( $ ids ) ; } $ ids = array_map ( 'absint' , $ ids ) ; if ( empty ( $ ids ) || ( count ( $ ids ) === 1 && ! $ ids [ 0 ] ) ) { return ; } foreach ( $ ids as $ id ) { wpcw ( ) -> questions -> delete_question ( $ id ) ; } wpcw_add_admin_notice_success ( esc_html__ ( 'Questions deleted successfully!' , 'wp-courseware' ) ) ; wp_safe_redirect ( $ this -> page -> get_url ( ) ) ; exit ; }
Process Action: Bulk Delete.
Process Action : Bulk Delete .