WordPress at Your Fingertips
function is not described

WC_Report_Downloads::get_filter_vars() protected WC 1.0

Get filters from querystring.

{} It's a method of the class: WC_Report_Downloads{}

No Hooks.

Return

Object.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_filter_vars();

Code of WC_Report_Downloads::get_filter_vars() WC 5.8.0

protected function get_filter_vars() {
	$product_id      = ! empty( $_GET['product_id'] ) ? absint( wp_unslash( $_GET['product_id'] ) ) : null; // WPCS: input var ok.
	$download_id     = ! empty( $_GET['download_id'] ) ? wc_clean( wp_unslash( $_GET['download_id'] ) ) : null; // WPCS: input var ok.
	$permission_id   = ! empty( $_GET['permission_id'] ) ? absint( wp_unslash( $_GET['permission_id'] ) ) : null; // WPCS: input var ok.
	$order_id        = ! empty( $_GET['order_id'] ) ? absint( wp_unslash( $_GET['order_id'] ) ) : null; // WPCS: input var ok.
	$user_id         = ! empty( $_GET['user_id'] ) ? absint( wp_unslash( $_GET['user_id'] ) ) : null; // WPCS: input var ok.
	$user_ip_address = ! empty( $_GET['user_ip_address'] ) ? wc_clean( wp_unslash( $_GET['user_ip_address'] ) ) : null; // WPCS: input var ok.

	return (object) array(
		'product_id'      => $product_id,
		'download_id'     => $download_id,
		'permission_id'   => $permission_id,
		'order_id'        => $order_id,
		'user_id'         => $user_id,
		'user_ip_address' => $user_ip_address,
	);
}