woocommerce_rest_private_query_vars

woocommerce_rest_private_query_vars

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_rest_private_query_vars') is found 1 times:

  • /includes/rest-api/Controllers/Version3/class-wc-rest-posts-controller.php line 572
    			 *
    			 * @param array $private_query_vars Array of allowed query vars for authorized users.
    			 * }
    			 */
    			$private = apply_filters( 'woocommerce_rest_private_query_vars', $wp->private_query_vars );
    			$valid_vars = array_merge( $valid_vars, $private );
    		}
    		// Define our own in addition to WP's normal vars.
    		$rest_valid = array(
    			'date_query',
    			'ignore_sticky_posts',
    

See this hook used in plugins: