CatalogSortOrder
in package
Enum class for the possible values of the 'woocommerce_default_catalog_orderby' option.
Tags
Table of Contents
- DATE = 'date'
- Sort by most recent.
- MENU_ORDER = 'menu_order'
- Default sorting (custom ordering + name).
- POPULARITY = 'popularity'
- Sort by popularity (number of sales).
- PRICE = 'price'
- Sort by price ascending.
- PRICE_DESC = 'price-desc'
- Sort by price descending.
- RATING = 'rating'
- Sort by average rating.
Constants
DATE
Sort by most recent.
public
string
DATE
= 'date'
MENU_ORDER
Default sorting (custom ordering + name).
public
string
MENU_ORDER
= 'menu_order'
POPULARITY
Sort by popularity (number of sales).
public
string
POPULARITY
= 'popularity'
PRICE
Sort by price ascending.
public
string
PRICE
= 'price'
PRICE_DESC
Sort by price descending.
public
string
PRICE_DESC
= 'price-desc'
RATING
Sort by average rating.
public
string
RATING
= 'rating'
