WooCommerce Products Meta Data Filters icon

WooCommerce Products Meta Data Filters

WooCommerce Products Meta Data Filters

Description

WooCommerce Products Meta Data Filters is a simple but powerful WordPress plugin to filter your WooCommerce products

Filter by product weight, product length, product width, product height, product custom fields, product ACF fields and much more!

The filtering will only work on WooCommerce pages (main WooCommerce shop page, archive product lists) etc. It will not function on custom product lists added to custom pages eg. via a 3rd party plugin or via shortcodes.

Watch the video demo on YouTube

Features

  • No complicated settings page. Simple and easy administration via Widgets.
  • Works out of the box.
  • Auto discovers all default and custom meta keys.
  • You can create unlimited product filters and combine them.
  • Extensible / developer friendly. You can alter the plugin without hacking it, but via WordPress filters and actions.
  • Works on all WooCommerce setups and themes.
  • Easily translatable via .po / .mo files.

Requirements

  • WordPress 4.0+
  • WooCommerce 3.0+
  • PHP 5.4+

Usage

On wp-admin, click on Appearance on the left menu and then on the Widgets submenu. Locate the “Filter products by Meta” widget and add it on the appropriate sidebar

On the widget options fill in the fields depending on your needs

Options
  1. Title: Enter the title of the widget. Most of the times it is placed on the top of the widget as a header.
  2. Label: Put the label of the element you are filtering eg. “Width:”
  3. Meta Key: Select the meta key you want to filter by
  4. Filter type: Select “List” to display all available values of this meta key or “range” to create a slider if you are filtering by a numeric value, eg. the weight of the products
  5. Order options: Select the order of the filter’s values
  6. Order Autorefresh: This will remove the submit button from a “range” filter and will auto submit the filter when it has been changed
  7. You are ready to go! * Save *

For Developers

Some hooks are in place. Please search the code for a full list. Below are some of them with examples.

Filters

You can make the filters display in every page you want. The code below will make them display on every page that has the containing sidebar.

add_filter( 'wmf_display_condition', 'my_wmf_display_condition');
function my_wmf_display_condition( $condition ) {

  return true;
}

You can change the list of the filter types.

add_filter( 'wmf_filter_types', 'my_wmf_filter_types');
function my_wmf_display_condition( $types ) {

  $types['checkbox'] = __( 'Checkbox', 'wmf');

  return $types;
}
Actions

You may add your own behaviour on your filter type

add_action( 'wmf_widget_end', 'my_wmf_widget_end', 10, 7 );
function my_wmf_widget_end( $title, $valueslabel, $metakey, $filtertype, $orderby, $autorefresh, $values_array ) {
  // your code here
}

Frequently Asked Questions

  1. Can I filter by any custom field (meta data)?

    Yes, you can.

  2. How do I add my custom meta data on a product?

    Edit the product in wp-admin. On the top – right corner of the screen, click on “screen options” and make sure that “Custom Fields” is checked. Scroll to the custom fields metabox and add your custom meta data. Read more on custom fields

  3. Can I put this anywhere in my site?

    You can put it on any sidebar on your website.

  4. What default fields can I filter by?

    Some of the default filter fields are:

    • weight
    • length
    • width
    • height
    • visibility
    • stock status
    • total sales
    • sales price
    • regular price
    • tax status
    • tax class
    • featured
    • sku
    • reviews count
    • average rating
  5. Can I read the documentation?

    About / Documentation

Changelog

1.0.5 11/03/2021
  • Feature: Added touch/drag slider support for mobile devices
1.0.4 10/25/2021
  • Fix: Added missing jQuery UI images
1.0.3 05/02/2021
  • Fix: Removed some PHP warnings
1.0.2 09/12/2019
  • Feature: Added support for float range filters
1.0.1 04/26/2019
  • Fix: Added support for all meta key values
1.0.0 04/24/2019
  • Initial release

Sources and Credits

This plugin uses the following libraries

External listing. code.market does not sell this product and does not process payment for it. Pricing, payment, delivery, licensing, refunds, and support are handled by the third-party merchant on its own website. We may earn an affiliate commission from a referral. Details.

Products of the Week.

Submit
codester.com

codester.com

SocialDesk+: Omnichannel Social Commerce & Business Management Platform This is stronger than simply “Social Commerce and Messaging” because it tells buyers this is a complete business platform, not just a messaging script. Turn Social Conversations Into Sales SocialDesk+ is a complete omnichannel social commerce and business management platform built for businesses that sell and communicate with customers through social media. Instead of switching between WhatsApp, Facebook, Instagram and TikTok, businesses can manage customer conversations, comments, products, leads, follow-ups, automation, teams and business reports from one professional workspace. And because the full source code is included, developers, agencies and entrepreneurs can customize, rebrand and launch SocialDesk+ as their own business solution or SaaS platform. 🚀 Build Your Own Social Commerce Business SocialDesk+ gives you the foundation to launch: - Your own SaaS platform - A white-label social CRM - A social-commerce management system - A customer communication platform - A business messaging solution - A custom solution for clients - A multi-business subscription platform 💬 Connect Your Customers Supported social channels include: WhatsApp • Facebook • Instagram • TikTok Bring supported conversations into one centralized workspace and help businesses respond faster without constantly switching between platforms. 🛍️ More Than a Messaging Platform SocialDesk+ combines communication with the tools businesses need to manage customer opportunities: Inbox Manage customer conversations from connected channels. Comments Monitor and respond to social-media comments. Customers & Leads Organize customer information and potential buyers. Products & Catalog Manage products and give your team quick access to product information. Follow-Ups Make sure potential customers don't get forgotten. Automation Automate repetitive customer questions and responses. AI Assistant Provide AI-assisted communication when configured. Team Management Give managers and staff access to the business workspace. Reports & Analytics Track activity using business reports and analytics. The current product listing already includes these capabilities. 🔥 Why Buyers Will Want It Launch Faster Start with an already-built business platform instead of developing the entire system from zero. Customize Everything The full source code is included, allowing developers to change branding, features, workflows and integrations. Build a SaaS Create multiple business workspaces and offer SocialDesk+ as a subscription-based service. Sell to Businesses Offer it to retailers, restaurants, service businesses, online sellers, agencies and other businesses that communicate with customers through social media. Mobile + Web + Backend This isn't just a mobile UI template. It includes: - Flutter mobile application - Python / FastAPI backend - Web interface - Administration tools - Database infrastructure - API-based architecture - SQLite / PostgreSQL support - Android and iOS project structure 💼 One Platform. Multiple Business Opportunities. For SaaS Entrepreneurs Launch your own subscription platform and allow multiple businesses to operate inside separate workspaces. For Software Agencies Customize and rebrand the platform for clients instead of building an omnichannel business system from scratch. For Developers Use the complete source code as a foundation for your own social-commerce or customer-management product. For Businesses Deploy a dedicated version for your own customer-service and social-commerce operations. 🧩 What's Included Mobile - Flutter / Dart - Android - iOS project Backend - Python - FastAPI - SQLAlchemy - Alembic Database - SQLite - PostgreSQL Web - HTML5 - CSS3 - JavaScript Deployment - Docker - Docker Compose - Production configuration Business Platform - Multi-workspace architecture - Authentication - Teams - Customers - Products - Messaging - Comments - Automation - Reports - Subscriptions - Administration The current listing also documents third-party integrations such as Meta, TikTok, Stripe, Firebase, SMTP and optional OpenAI configuration. ⚡ What Makes SocialDesk+ Different? You're not buying a simple: ❌ Chat UI ❌ WhatsApp clone ❌ Flutter template ❌ Admin dashboard ❌ Basic CRM You're getting a complete business platform foundation that can be customized, branded and commercialized. Connect. Automate. Manage. Grow. SocialDesk+ Omnichannel Social Commerce & Business Management Platform One important change I'd make to the current listing The current page starts with: “A simple guide to managing your social conversations, customers, products and business activity.”

Other · 20,289 views · 35 clicks

$2

WooCommerce Products Meta Data Filters | Code Market