public/wordpress/wp-content/plugins/wp-courseware/includes/admin/tables/table-quizzes.php
/**
	 * Process Action: Filter by Course and Unit.
	 *
	 * @since 4.3.0
	 */
Process Action: Filter by Course and Unit.
Process Action : Filter by Course and Unit .
public function process_action_filter_by_course_and_unit() {
		$course_id = ! empty( $_GET['course_id'] ) ? absint( $_GET['course_id'] ) : 0;
		$unit_id   = ! empty( $_GET['unit_id'] ) ? absint( $_GET['unit_id'] ) : 0;
		$url = $this->page->get_url();
		if ( ! empty( $course_id ) ) {
			$url = add_query_arg( array( 'course_id' => $course_id ), $url );
		}
		if ( ! empty( $unit_id ) ) {
			$url = add_query_arg( array( 'unit_id' => $unit_id ), $url );
		}
		wp_safe_redirect( esc_url_raw( $url ) );
		exit;
	}
public function process_action_filter_by_course_and_unit ( ) { $ course_id = ! empty ( $ _GET [ 'course_id' ] ) ? absint ( $ _GET [ 'course_id' ] ) : 0 ; $ unit_id = ! empty ( $ _GET [ 'unit_id' ] ) ? absint ( $ _GET [ 'unit_id' ] ) : 0 ; $ url = $ this -> page -> get_url ( ) ; if ( ! empty ( $ course_id ) ) { $ url = add_query_arg ( array ( 'course_id' => $ course_id ) , $ url ) ; } if ( ! empty ( $ unit_id ) ) { $ url = add_query_arg ( array ( 'unit_id' => $ unit_id ) , $ url ) ; } wp_safe_redirect ( esc_url_raw ( $ url ) ) ; exit ; }
Process Action: Filter by Course and Unit.
Process Action : Filter by Course and Unit .