WooCommerce admin products filter by on sale

I needed the ability to filter the WooCommerce products list within admin by products which where on sale. This was to allow the client to easily find products they have put on offer within certain categories. The below code achieves this.

It does need some work, as it currently ignores the on sale start and end dates, however you should be able to easily modify it for this purpose.

Leave a Reply

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

This site uses Akismet to reduce spam. Learn how your comment data is processed.


  1. Jarkko Saltiola

    Thank’s for this, helped a bit.

    There’s a little typo though. Line 32 gives “PHP Parse error: syntax error, unexpected ‘='”.

    So just change “= >” to “=>”.

Next ArticleCool CSS3 Animated Weather Icons using CSS3