WordPress filter hook
woocommerce_catalog_orderby
Defined by WooCommerce and fired by 27 plugins in total, running on 7.4M+ sites between them.
“Filters the catalog orderby options.”
How to use woocommerce_catalog_orderby
It's a filter: your callback receives the value, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'woocommerce_catalog_orderby', function( $options ) {
// Change $options here.
return $options;
}, 10, 1 );Argument names come from Extra Product Sorting Options for WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
27 plugins that fire woocommerce_catalog_orderby
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WooCommerce7+ million installs
apply_filters( 'woocommerce_catalog_orderby', array( 'menu_order' => __( 'Default', 'woocommerce' ), 'popularity' => __( 'Popularity', 'woocommerce' ), 'rating' => __( 'Average rating', 'woocommerce' ), 'date' => __( 'Latest', 'woocommerce' ), 'price' => __( 'Price: low to high', 'woocommerce' ), 'price-desc' => __( 'Price: high to low', 'woocommerce' ), ) )includes/wc-template-functions.php:1695 -
ShopLentor80,000+ installs
apply_filters( 'woocommerce_catalog_orderby', array( 'menu_order' => __( 'Default sorting', 'woolentor' ), 'popularity' => __( 'Sort by popularity', 'woolentor' ), 'rating' => __( 'Sort by average rating', 'woolentor' ), 'date' => __( 'Sort by latest', 'woolentor' ), 'price' => __( 'Sort by price: low to high', 'woolentor' ), 'price-desc' => __( 'Sort by price: high to low', 'woolentor' ), ) )includes/helper-function.php:1488 -
HUSKY80,000+ installs
apply_filters( 'woocommerce_catalog_orderby', array( 'menu_order' => __( 'Default sorting', 'woocommerce' ), 'popularity' => __( 'Sort by popularity', 'woocommerce' ), 'rating' => __( 'Sort by average rating', 'woocommerce' ), 'date' => __( 'Sort by latest', 'woocommerce' ), 'price' => __( 'Sort by price: low to high', 'woocommerce' ), 'price-desc' => __( 'Sort by price: high to low', 'woocommerce' ), ) )classes/mcp/engine.php:1196 -
YITH WooCommerce Ajax Product Filter70,000+ installs
apply_filters( 'woocommerce_catalog_orderby', array( 'menu_order' => _x( 'Default sorting', '[Admin] Filter edit form, sorting options', 'yith-woocommerce-ajax-navigation' ), 'popularity' => _x( 'Sort by popularity', '[Admin] Filter edit form, sorting options', 'yith-woocommerce-ajax-navigation' ), 'rating' => _x( 'Sort by average rating', '[Admin] Filter edit form, sorting options', 'yith-woocommerce-ajax-navigation' ), 'date' => _x( 'Sor... )includes/class-yith-wcan-filters-factory.php:131 -
Product Filter for WooCommerce by WBW50,000+ installs
apply_filters( 'woocommerce_catalog_orderby', array() )modules/woofilters/models/class-woobewoo-pf-woofilters-model.php:304 -
DethemeKit for Elementor30,000+ installs
apply_filters( 'woocommerce_catalog_orderby', array( 'menu_order' => __( 'Default sorting', 'dethemekit-for-elementor' ), 'popularity' => __( 'Sort by popularity', 'dethemekit-for-elementor' ), 'rating' => __( 'Sort by average rating', 'dethemekit-for-elementor' ), 'date' => __( 'Sort by latest', 'dethemekit-for-elementor' ), 'price' => __( 'Sort by price: low to high', 'dethemekit-for-elementor' ), 'price-desc' => __( 'Sort by price: high... )includes/helper-function.php:261 -
LA-Studio Element Kit for Elementor10,000+ installs
apply_filters( 'woocommerce_catalog_orderby', array( 'menu_order' => esc_html__( 'Default sorting', 'woocommerce' ), 'popularity' => esc_html__( 'Sort by popularity', 'woocommerce' ), 'rating' => esc_html__( 'Sort by average rating', 'woocommerce' ), 'date' => esc_html__( 'Sort by latest', 'woocommerce' ), 'price' => esc_html__( 'Sort by price: low to high', 'woocommerce' ), 'price-desc' => esc_html__( 'Sort by price: high to low', 'woocom... )includes/modules/woofilters/module.php:214 -
ShopBuilder10,000+ installs
apply_filters( 'woocommerce_catalog_orderby', [ 'menu_order' => __( 'Default sorting', 'shopbuilder' ), 'popularity' => __( 'Sort by popularity', 'shopbuilder' ), 'rating' => __( 'Sort by average rating', 'shopbuilder' ), 'date' => __( 'Sort by latest', 'shopbuilder' ), 'price' => __( 'Sort by price: low to high', 'shopbuilder' ), 'price-desc' => __( 'Sort by price: high to low', 'shopbuilder' ), ] )app/Elementor/Helper/RenderHelpers.php:36 -
Extra Product Sorting Options for WooCommerce10,000+ installs
apply_filters( 'woocommerce_catalog_orderby', $options )woocommerce-extra-product-sorting-options.php:278 -
Product Table for WooCommerce5,000+ installs
apply_filters( 'woocommerce_catalog_orderby', array( 'menu_order' => __( 'Default sorting (Menu Order)', 'woo-product-table' ), 'popularity' => __( 'Sort by popularity', 'woo-product-table' ), 'rating' => __( 'Sort by average rating', 'woo-product-table' ), 'date' => __( 'Sort by latest', 'woo-product-table' ), 'price' => __( 'Sort by price: low to high', 'woo-product-table' ), 'price-desc' => __( 'Sort by price: high to low', 'woo-product... )admin/tabs/query.php:246 -
Better Addons for Elementor4,000+ installs
apply_filters( 'woocommerce_catalog_orderby', array( 'menu_order' => __( 'Default sorting', 'better-elementor-addons' ), 'popularity' => __( 'Sort by popularity', 'better-elementor-addons' ), 'rating' => __( 'Sort by average rating', 'better-elementor-addons' ), 'date' => __( 'Sort by newness', 'better-elementor-addons' ), 'price' => __( 'Sort by price: low to high', 'better-elementor-addons' ), 'price-desc' => __( 'Sort by price: high to ... )widgets/product/style1.php:44 -
annasta Filters for WooCommerce1,000+ installs
apply_filters( 'woocommerce_catalog_orderby', array( 'menu_order' => __( 'Default sorting', 'woocommerce' ), 'popularity' => __( 'Sort by popularity', 'woocommerce' ), 'rating' => __( 'Sort by average rating', 'woocommerce' ), 'date' => __( 'Sort by latest', 'woocommerce' ), 'price' => __( 'Sort by price: low to high', 'woocommerce' ), 'price-desc' => __( 'Sort by price: high to low', 'woocommerce' ), ) )code/class-a-w-f-filter.php:69 -
StoreBuild400+ installs
apply_filters( 'woocommerce_catalog_orderby', array( 'menu_order' => __('Default sorting', 'shopbuild'), 'popularity' => __('Sort by popularity', 'shopbuild'), 'rating' => __('Sort by average rating', 'shopbuild'), 'date' => __('Sort by latest', 'shopbuild'), 'price' => __('Sort by price: low to high', 'shopbuild'), 'price-desc' => __('Sort by price: high to low', 'shopbuild'), ) )public/widgets/elementor/archive-products-ordering.php:140 -
core plugin for kitestudio themes300+ installs
apply_filters( 'woocommerce_catalog_orderby', array( 'menu_order' => esc_html__( 'Default sorting', 'kitestudio-core' ), 'popularity' => esc_html__( 'Sort by popularity', 'kitestudio-core' ), 'rating' => esc_html__( 'Sort by average rating', 'kitestudio-core' ), 'date' => esc_html__( 'Sort by newness', 'kitestudio-core' ), 'price' => esc_html__( 'Sort by price: low to high', 'kitestudio-core' ), 'price-desc' => esc_html__( 'Sort by price: ... )includes/widgets/widget-woocommerce-order-by-filter.php:119 -
Administrator Z200+ installs
apply_filters( 'woocommerce_catalog_orderby', array( 'menu_order' => __('Default sorting', 'woocommerce'), 'popularity' => __('Sort by popularity', 'woocommerce'), 'rating' => __('Sort by average rating', 'woocommerce'), 'date' => __('Sort by latest', 'woocommerce'), 'price' => __('Sort by price: low to high', 'woocommerce'), 'price-desc' => __('Sort by price: high to low', 'woocommerce'), ) )src/Controller/Woocommerce.php:422 -
Horeka Core50+ installs
apply_filters( 'woocommerce_catalog_orderby', array( '12' => __( 'Show 12 products', 'rpd-restaurant-solution' ), '24' => __( 'Show 24 products', 'rpd-restaurant-solution' ), '36' => __( 'Show 36 products', 'rpd-restaurant-solution' ), '-1' => __( 'Show all products', 'rpd-restaurant-solution' ), ) )inc/functions.php:96 -
Nexvio for WooCommerce30+ installs
apply_filters( 'woocommerce_catalog_orderby', array( 'menu_order' => __( 'Default sorting', 'woocommerce' ), 'popularity' => __( 'Sort by popularity', 'woocommerce' ), 'rating' => __( 'Sort by average rating', 'woocommerce' ), 'date' => __( 'Sort by latest', 'woocommerce' ), 'price' => __( 'Sort by price: low to high', 'woocommerce' ), 'price-desc' => __( 'Sort by price: high to low', 'woocommerce' ), ) )widgets/class-nexvio-product-filter-widget.php:1072 -
Ordering Widget for WooCommerce10+ installs
apply_filters( 'woocommerce_catalog_orderby', array( 'menu_order' => __('Default sorting', 'WooCommerce'), 'popularity' => __('Sort by popularity', 'WooCommerce'), 'rating' => __('Sort by average rating', 'WooCommerce'), 'date' => __('Sort by latest', 'WooCommerce'), 'price' => __('Sort by price: low to high', 'WooCommerce'), 'price-desc' => __('Sort by price: high to low', 'WooCommerce'), ) )hadhad-wc-ordering.php:98 -
Xcodesol Shop BuilderFewer than 10 installs
apply_filters( 'woocommerce_catalog_orderby', array( 'menu_order' => __( 'Default sorting', 'xcodesol-shop-builder' ), 'popularity' => __( 'Sort by popularity', 'xcodesol-shop-builder' ), 'rating' => __( 'Sort by average rating', 'xcodesol-shop-builder' ), 'date' => __( 'Sort by latest', 'xcodesol-shop-builder' ), 'price' => __( 'Sort by price: low to high', 'xcodesol-shop-builder' ), 'price-desc' => __( 'Sort by price: high to low', 'xcod... )blocks/archive/ordering.php:95 -
CodeBold Smart FiltersFewer than 10 installs
apply_filters( 'woocommerce_catalog_orderby', [ 'menu_order' => __( 'Default sorting', 'codebold-smart-filters' ), 'popularity' => __( 'Sort by popularity', 'codebold-smart-filters' ), 'rating' => __( 'Sort by average rating', 'codebold-smart-filters' ), 'date' => __( 'Sort by latest', 'codebold-smart-filters' ), 'price' => __( 'Sort by price: low to high', 'codebold-smart-filters' ), 'price-desc' => __( 'Sort by price: high to low', 'code... )src/Filters/SortControl.php:86 -
JMPGraphics Shop BuilderFewer than 10 installs
apply_filters( 'woocommerce_catalog_orderby', array( 'menu_order' => esc_html__( 'Ordenação padrão', 'jmpgraphics-shop-builder' ), 'popularity' => esc_html__( 'Popularidade', 'jmpgraphics-shop-builder' ), 'rating' => esc_html__( 'Pontuação média', 'jmpgraphics-shop-builder' ), 'date' => esc_html__( 'Mais recentes', 'jmpgraphics-shop-builder' ), 'price' => esc_html__( 'Preço: baixo para alto', 'jmpgraphics-shop-builder' ), 'price-des... )includes/elementor/widgets/product-archive-filters-widget.php:353 -
FSCO Instant ShopFewer than 10 installs
apply_filters( 'woocommerce_catalog_orderby', wc_get_catalog_orderby() )includes/class-fscoinsh-instant-shop-widget.php:372 -
StorzenFewer than 10 installs
apply_filters( 'woocommerce_catalog_orderby', array( 'menu_order' => esc_html__( 'Default sorting', 'woocommerce' ), 'popularity' => esc_html__( 'Sort by popularity', 'woocommerce' ), 'rating' => esc_html__( 'Sort by average rating', 'woocommerce' ), 'date' => esc_html__( 'Sort by latest', 'woocommerce' ), 'price' => esc_html__( 'Sort by price: low to high', 'woocommerce' ), 'price-desc' => esc_html__( 'Sort by price: high to low', 'woocom... )elementor/widgets/class-storzen-style-archive-toolbar.php:361 -
Product Filter by WuWizardsFewer than 10 installs
apply_filters( 'woocommerce_catalog_orderby', array() )src/filters/model.php:236 -
WEBD Woo Event BookingsFewer than 10 installs
apply_filters( 'woocommerce_catalog_orderby', array( 'menu_order' => __( 'Default sorting', 'woocommerce' ), 'popularity' => __( 'Sort by popularity', 'woocommerce' ), 'rating' => __( 'Sort by average rating', 'woocommerce' ), 'date' => __( 'Sort by newness', 'woocommerce' ), 'price' => __( 'Sort by price: low to high', 'woocommerce' ), 'price-desc' => __( 'Sort by price: high to low', 'woocommerce' ) ) )templates/no-products-found.php:44 -
Arshida Toolkit for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_catalog_orderby', array( 'menu_order' => __( 'Default sorting', 'arshida' ), 'popularity' => __( 'Sort by popularity', 'arshida' ), 'rating' => __( 'Sort by average rating', 'arshida' ), 'date' => __( 'Sort by latest', 'arshida' ), 'price' => __( 'Sort by price: low to high', 'arshida' ), 'price-desc' => __( 'Sort by price: high to low', 'arshida' ), ) )src/WC/Shop/Main.php:68 -
ShopXpertFewer than 10 installs
apply_filters( 'woocommerce_catalog_orderby', array( 'menu_order' => __( 'Default sorting', 'shopxpert' ), 'popularity' => __( 'Sort by popularity', 'shopxpert' ), 'rating' => __( 'Sort by average rating', 'shopxpert' ), 'date' => __( 'Sort by latest', 'shopxpert' ), 'price' => __( 'Sort by price: low to high', 'shopxpert' ), 'price-desc' => __( 'Sort by price: high to low', 'shopxpert' ), ) )incs/helper-function.php:1032
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.