Built in filters

Post filters #

FilterDescription
Post titleCompares the post title (text) with the comparison value using the selected operator
Post contentCompares the post content (text) with the comparison value using the selected operator
Post typeChecks if the post type (single value) is or is not part of a list of comparison values of existing post types
Post statusChecks if the post status (single value) is or is not part of a list of comparison values of existing post statuses
Post ownerChecks if the post owner (single value) is or is not part of a list of comparison values of existing WordPress users
Post tagsChecks if the post tags (multiple values) contains all, contains any or contains none of a list of comparison values
Post categoriesChecks if the post categories (multiple values) contains all, contains any or contains none of a list of comparison values
Custom fieldCompares the value of a named custom field (text) with the comparison value using the selected operator. Note! This filter requires a valid custom field name to be defined.
Advanced custom fieldSame as above. But instead of defining the custom field via it’s name, an ACF field is selected from a drop down of all existing ACF fields.

User filters #

FilterDescription
User emailCompares the user email (text) with the comparison value using the selected operator
User roleChecks if the user role (single value) is or is not part of a list of comparison values of existing user roles

Comment filters #

FilterDescription
Comment typeCompares the comment type (text) with the comparison value using the selected operator
Comment statusCompares the comment status (single value) is or is not part of a list of comparison values of existing comment statuses (Approved etc)
Comment author nameCompares the comment author name (text) with the comparison value using the selected operator
Comment author emailCompares the comment author email address (text) with the comparison value using the selected operator
Comment contentCompares the comment type (text) with the comparison value using the selected operator
Is Customer noteYes / No filter. Only available if WooCommerce is installed. Makes it possible to filter customer notes (public) vs private notes (internal)

WooCommerce order filters #

FilterDescription
Order productsChecks if the order products (multiple values) contains all, contains any or contains none of a list of comparison values of products
Order product typesChecks if the order product types (multiple values) contains all, contains any or contains none of a list of comparison values of products types (Simple, grouped, external, variable)
Order product tagsChecks if the tags of the order products (multiple values) contains all, contains any or contains none of a list of comparison values of products tags
Order product categoriesChecks if the categories of the order products (multiple values) contains all, contains any or contains none of a list of comparison values of products categories
Virtual productChecks if no, any or all of the products in the order are virtual
Downloadable productChecks if no, any or all of the products in the order are downladable
Order total amountChecks if the order total amount (numeric) equals, not equals, is greater than or equals or lower than or equals a comparison value
Order billing emailCompares the billing email (text) with the comparison value using the selected operator
Order billing countryCompares the order billing country (single value) is or is not part of a list of comparison values of WooCommerce countries
Order billing stateCompares the order billing state (single value) is or is not part of a list of comparison values of WooCommerce states
Order billing cityCompares the order billing city (text) with the comparison value using the selected operator
Order billing companyCompares the order billing company (text) with the comparison value using the selected operator
Order payment methodCompares the order payment method (single value) is or is not part of a list of comparison values of WooCommerce payment methods
Order shipping countryCompares the order shipping country (single value) is or is not part of a list of comparison values of WooCommerce countries
Order shipping stateCompares the order shipping state (single value) is or is not part of a list of comparison values of WooCommerce states
Order shipping cityCompares the order shipping city (text) with the comparison value using the selected operator
Order shipping companyCompares the order shipping company (text) with the comparison value using the selected operator
Order shipping methodCompares the order shipping method (single value) is or is not part of a list of comparison values of available WooCommerce shipping methods
Order shipping zoneCompares the order shipping zone (single value) is or is not part of a list of comparison values of available WooCommerce shipping zones

WooCommerce customer filters #

FilterDescription
Order count (total)Compares the total number of orders from the same customer, regardless of the order status of each order. The customer is identified via the email address.
Order count (completed)Compares the number of completed orders from the same customer. The customer is identified via the email address.

Other filters #

FilterDescription
Request initiatorCompares the http request initator (single value) is or is not part of a list of comparison values of known initiators (REST, AJAX, Normal request)
Referer URLCompares the http referer URL (text) with the comparison value using the selected operator.
Referer Post idUses internal WordPress functions to resolve the referer URL to a post id. If the refering page is a post, page ,product etc, this filter will let you compare it to a number. Useful to detect the page of a posted form.
Remote IP addressFilter using the IP address of the requesting client (web browser, script etc.) to allow / or deny certain requests. Primarily intended to work with incoming webooks and posted forms but works for all types of requests. Read more here.

Powered by BetterDocs

Leave a Reply

Your email address will not be published. Required fields are marked *