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
- Order Posts Using Taxonomy Term Facetwp [closed]
- How can I reduce the amount of files loaded/included per plugin?
- Show child pages by menu order using Superfish Dropdown menu?
- How to create custom LOGIN and REGISTRATION forms?
- wamp server wordprocess whole from begining up on filezilla
- How to add product images using script?
- Retrieve categories of a WooCommerce product in hierachical order
- Travel Blog Plugins
- How to remove the whitespace in image name and save the new file
- add action wp_head not working
- Error 404 using wpml plugin
- AJAX button run function
- Removing Super Cache Plugin
- How to sanitize uploaded file filename from a plugin?
- How to change File URL in file uploaded to s3 compatible storage with self written plugin [closed]
- Single API call exposed via shortcode with params
- Add comments for template variables
- What would I need to write into a custom plugin in order to add a switch for a custom string of CSS to the edit page?
- What is @Action in WordPress?
- Plugin Options not being output
- Is there a way to embed a Google Docs form in a page without using plugins?
- How to have sample page for each new register users in a membership website
- REST route from a plugin not working if WordPress is installed in a subdirectory
- Add Shortcode tag in Widget/Sidebar
- How to edit a published post?
- ‘Notice: Undefined index’ error on plugins page [closed]
- Plugin generating unexpected output – on WP mysql dump import
- WordPress plugin: Getting posts where checkbox selected
- WP_Table_List and ob_start() memory limit
- Best practice when modifying plugins CSS [duplicate]
- WP Editor, save content and category on frontend
- Adding a pagenavi to function for displaying bookmarks
- google +1 like polling system
- What is the most efficient way of adding additional functionaliy for admin only
- Disable WordPress Theme Browser and Plugin Browser
- Add hook after content without formatting
- admin_post hook not firing function inside class
- how to auto random increment for post view
- Merging new theme and plugins from development site to production
- .com creates automated link in post
- post id or permalink auto-incrementing number and reset everyday
- WordPress sitemap “Extra content at the end of the document”
- Not displaying Woocommerce product page in lightbox
- Title and date of last post stays on page even after replacing the_content
- Above the fold plugin error “The Proxy Cache directory contains n cache entries.”
- User / membership Plugin [closed]
- Can we validate data from jquery
- Fetching WP.me shortlinks for posts using WP Rest API
- error_log() not working in add_filter auto update callback
- Follow author on muti-user WordPress site
- Add a checkbox in plugin options page and make it actually work
- wp_insert_post hook not being called with wp_publish_post or wp_insert_post?
- Calling a function from a link in WordPress
- Live coding in WordPress
- Looking for a home page carousel [closed]
- Sell “create a post”, paid account for post creation
- How to remove site name (https://exp.com/) from WORDPRESS site source links or file load url
- How to customized post slider layout in elementor wordpress [closed]
- Learnpress FATAL ERROR
- is_singular() in mu-plugins not working
- How to access a function declared in child theme’s functions file in a plugin file?