Actually, with a little digging this is quite easy to do. WooCommerce has already set up a filter so all you have to do it add a small snippet in your functions.php file.
// Modify the default WooCommerce orderby dropdown
//
// Options: menu_order, popularity, rating, date, price, price-desc
function my_woocommerce_catalog_orderby( $orderby ) {
unset($orderby["price"]);
unset($orderby["price-desc"]);
return $orderby;
}
add_filter( "woocommerce_catalog_orderby", "my_woocommerce_catalog_orderby", 20 );
taken from: https://gist.github.com/BFTrick/5806726
In this example I’m removing price
& price-desc
but you can remove any of the options
Related Posts:
- Add a “default sorting” menu to child store pages
- Sort plugins by rating
- WooCommerce ‘all’ orders no longer being displayed – how may I debug/fix [closed]
- How can I show drafts in wp_dropdown_pages list?
- Remove action from woocommerce barcode plugin [closed]
- Sort products without thumbnail in WooCommerce shop page
- How do I sort posts with multiple pages
- WP_Query ordering numbers as letters
- Easiest way to add dropdown to a page
- Adding sections in the ‘Pages’ post type
- I want to auto populate data in three fields if one drop down is selected
- wp e-commerce sort by stock [closed]
- bbPress plugin: forum lists not showing in correct order? [closed]
- Are plugins instantiated on every request to WordPress?
- WooCommerce: Force coupon for existing/registered customers [closed]
- Order posts by meta key ( Using ACF )
- Contact Form 7 “non-selectable” options in a drop down [closed]
- Dropdown menu on click change
- Plugin that lets visitors Like a post (not facebook) and stores likes in custom meta?
- Elementor: How to design Dropdown Select Box Navigation page like Chegg
- Woocommerce redirection if no previous orders
- $wpdb not working wordpress plugin ajax call
- Load google font script based on optgroup label selected
- How to order blog posts by no. of likes?
- show-hide based on select option jquery wordpress
- Adding icons next to categories in wp_nav_menu
- Adding an onchange event to a custom dropdown menu in WordPress
- Simple Data Table Update and Page Integration
- Plugin use of ajax/jquery depending dropdown
- Output dropdown results into Woocommerce Order details
- how to search through plugin in wordpress cimy-user-extra-fields?
- Wanted: PayPal plugin for WordPress [closed]
- Auto Stock Update after Order cancel from Admin of Woocommerce?
- how to show selected options drop down menu values in attributes field in after saving post.php
- WordPress Feature – Multi Level sorting
- How to add product thumbnail on orders list on backend?
- Sort posts by Date (DESC) and by ACF: active_inactive (ASC)
- How to use `$order->get_discount_total()`, avoiding defoult WC decimal rounding?
- How to make a drop-down list so you can press and change display like on this website by using wordpress or CSS
- Show posts in custom order
- Order Posts Using Taxonomy Term Facetwp [closed]
- Breadcrumb is not generating the correct post page url
- Check if post was modified by editor different than post author
- Plugin:Read More Right Here , How to change the name (more…) to Read More
- Is there a way to add a custom input field for every taxonomy term in WP post editor?
- Award points if a specific custom taxonomy is selected – Cubepoints
- Where did the “WP-Custom” plugin go?
- How to activate/deactivate menu tab and keep the same id?
- pre-upload text and video for the future
- HTTP Error 403 When Trying to Login
- why the current date do not update
- ajax sends data to plugin
- plugin’s script and style enqueing not working on Thesis
- Making a Custom Post Type Publish Loop
- Trying to output a “Most visited blogs” list in wordpress multisite
- Posts 2 posts plugin loop echo the_title not working
- Pulling sub-site content into specific pages
- Hide/Show panel not showing – ACF
- WordPress Options-Theme STD (default) value does not work
- Access to wordpress method inside of classes
- Being notified when some YouTube video in some post becomes unavailable
- Remove ‘Publish to Facebook’ checkbox for Facebook page publish plugin
- include plugin folder directly in theme folder to load faster page n wp
- County Finder form/plugin?
- avatar displays outside of targeted area
- Make a wordpress site similar to Hot Or Not – Image rating system [closed]
- How to submit readme.txt file in wordpress directory
- Including a PHP file via a function that is part of a plugin?
- wordpress shortcode A executing code from shortcode B
- How to use template field in the Event Organiser plugin widget
- Plugin activated but plugin files nowhere to be found
- featured image problem with custom post type
- multiple external urls in wordpress website
- Plugin for Reading Documents, PDF’s etc
- Facebook Like Button with NextGen Gallery
- Twitter List Tweets and Delicious Links as Posts
- Display static pages instead of category, in code
- Overriding FB Auto Connect plugin function displayed in footer
- Include subtitle display to slideshow
- Advice on setting up private site
- How to add a box for list items?
- is ther a plugin that will hide/show content for a scheduled period of time? [closed]
- Any plugins that upload, resize, and display images? [closed]
- Share Bar over laps left column [closed]
- wp_update_post call really slow when official Facebook plugin is installed
- Updates for a private plugin?
- wp_pagination not displaying at top of page
- update_post_meta not working
- Pulling Advanced Custom Fields from other pages
- Simply Exclude – Category feed exclusion is excluding from category feed instead of just the main feed
- Checking url from plugin [duplicate]
- OOP Plugin: Where should I place the action hooks in the class?
- WordPress plugin WP-blocks is adding slashes before apostrophe
- how to call jQuery in admin as well as in homepage
- Form data to wordpress DB
- How to programmatically detect how many posts are displayed per page?
- Issue with custom plugin
- Pronamic Info Window
- Most visited posts
- Image rotator plugin