woocommerce_rest_query_var-{$var}

woocommerce_rest_query_var-{$var}

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_rest_query_var-{$var}') is found 1 times:

  • /includes/rest-api/Controllers/Version3/class-wc-rest-posts-controller.php line 523
    				 * The dynamic portion of the hook name, $var, refers to the query_var key.
    				 *
    				 * @param mixed $prepared_args[ $var ] The query_var value.
    				 */
    				$query_args[ $var ] = apply_filters( "woocommerce_rest_query_var-{$var}", $prepared_args[ $var ] );
    			}
    		}
    
    		$query_args['ignore_sticky_posts'] = true;
    
    		if ( 'include' === $query_args['orderby'] ) {