meta_value_num';
break;
default:
$normalized = $prefix . $query_param;
break;
}
return $normalized;
}
/**
* Get the query params for collections of products.
*
* @return array
*/
public function get_collection_params() {
$params = array();
$params['context'] = $this->get_context_param();
$params['context']['default'] = 'view';
$params['page'] = array(
'description' => __( 'Current page of the collection.', 'woocommerce' ),
'type' => 'integer',
'default' => 1,
'sanitize_callback' => 'absint',
'validate_callback' => 'rest_validate_request_arg',
'minimum' => 1,
);
$params['per_page'] = array(
'description' => __( 'Maximum number of items to be returned in result set. Defaults to no limit if left blank.', 'woocommerce' ),
'type' => 'integer',
'default' => 10,
'minimum' => 0,
'maximum' => 100,
'sanitize_callback' => 'absint',
'validate_callback' => 'rest_validate_request_arg',
);
$params['offset'] = array(
'description' => __( 'Offset the result set by a specific number of items.', 'woocommerce' ),
'type' => 'integer',
'sanitize_callback' => 'absint',
'validate_callback' => 'rest_validate_request_arg',
);
$params['order'] = array(
'description' => __( 'Order sort attribute ascending or descending.', 'woocommerce' ),
'type' => 'string',
'default' => 'desc',
'enum' => array( 'asc', 'desc' ),
'validate_callback' => 'rest_validate_request_arg',
);
$params['orderby'] = array(
'description' => __( 'Sort collection by object attribute.', 'woocommerce' ),
'type' => 'string',
'default' => 'date',
'enum' => array(
'date',
'date_gmt',
'id',
'rating',
'product',
),
'validate_callback' => 'rest_validate_request_arg',
);
$params['category_id'] = array(
'description' => __( 'Limit result set to reviews from specific category IDs.', 'woocommerce' ),
'type' => 'string',
'sanitize_callback' => 'wp_parse_id_list',
'validate_callback' => 'rest_validate_request_arg',
);
$params['product_id'] = array(
'description' => __( 'Limit result set to reviews from specific product IDs.', 'woocommerce' ),
'type' => 'string',
'sanitize_callback' => 'wp_parse_id_list',
'validate_callback' => 'rest_validate_request_arg',
);
return $params;
}
}
Warning: Class 'Automattic\WooCommerce\StoreApi\Routes\V1\ProductReviews' not found in /home/arasetne/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/StoreApi/deprecated.php on line 73
Warning: include_once(): Failed opening '/home/arasetne/public_html/wp-content/plugins/woocommerce/includes/interfaces/class-wc-order-item-type-data-store-interface.php' for inclusion (include_path='.:/opt/alt/php74/usr/share/pear') in /home/arasetne/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php on line 446
Fatal error: Uncaught Error: Interface 'WC_Order_Item_Type_Data_Store_Interface' not found in /home/arasetne/public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-item-coupon-data-store.php:17
Stack trace:
#0 /home/arasetne/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php(535): include_once()
#1 /home/arasetne/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php(186): WooCommerce->includes()
#2 /home/arasetne/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php(145): WooCommerce->__construct()
#3 /home/arasetne/public_html/wp-content/plugins/woocommerce/woocommerce.php(47): WooCommerce::instance()
#4 /home/arasetne/public_html/wp-content/plugins/woocommerce/woocommerce.php(62): WC()
#5 /home/arasetne/public_html/wp-settings.php(517): include_once('/home/arasetne/...')
#6 /home/arasetne/public_html/wp-config.php(188): require_once('/home/arasetne/...')
#7 /home/arasetne/public_html/wp-load.php(50): require_once('/home/arasetne/...') in /home/arasetne/public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-item-coupon-data-store.php on line 17