WPHEKA Search & Filter Orders by Product 4.1.3 has 9 actions and 18 filters, read directly from its source code on Nov 18, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when WPHEKA Search & Filter Orders by Product fires an action
add_action( 'wc_search_orders_by_product_after_filters', function( $storage ) {
// Your code runs here.
}, 10, 1 );
// Change a value WPHEKA Search & Filter Orders by Product is about to use
add_filter( 'wc_search_orders_by_product_capability', function( $default ) {
// Change $default here.
return $default;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * After the filter controls on the orders screen. */ do_action( 'wc_search_orders_by_product_after_filters', $storage ); -
/** * Before the filter controls on the orders screen. */ do_action( 'wc_search_orders_by_product_before_filters', $storage ); -
/** * Capability for the filters ('edit_shop_orders') or the settings * ('manage_woocommerce'). */ apply_filters( 'wc_search_orders_by_product_capability', $default ); -
/** * Arguments for the category dropdown. */ apply_filters( 'wc_search_orders_by_product_category_terms_args', array( 'taxonomy' => 'product_cat', 'name' => 'search_product_cat', 'class' => 'dropdown_product_cat wc-enhanced-select sobp-select', 'id' => 'dropdown_product_cat', 'hierarchical' => true, 'hide_empty' => false, 'show_option_none' => __( 'Category', 'wc-search-orders-by-product' ), 'option_none_value' => '', 'value_field' => 'term_id', 'selected' => $value ? absint( current( (array) $value ) )... ); -
/** * SQL conditions added to the orders list query, each ANDed in. */ apply_filters( 'wc_search_orders_by_product_conditions', $this->engine->get_conditions( $values, $id_column, $storage ), $values, $storage, $id_column ); -
/** * Filters registered on the orders screen. */ apply_filters( 'wc_search_orders_by_product_filter_fields', $fields ); -
/** * After the filter conditions were built for the orders list. */ do_action( 'wc_search_orders_by_product_filtered', $values, $storage ); -
/** * Whether the orders screen is being filtered by this plugin. */ apply_filters( 'wc_search_orders_by_product_is_filtering', ! empty( $values ), $values ); -
/** * Whether to match products through WooCommerce's order product lookup table. */ apply_filters( 'wc_search_orders_by_product_lookup_available', self::SOURCE_LOOKUP === $cached[ $storage ], $storage ); -
/** * Attributes of the product search box. */ apply_filters( 'wc_search_orders_by_product_product_select_attributes', array( 'class' => 'wc-product-search', 'id' => 'product_id', 'name' => 'product_id', 'data-placeholder' => __( 'Product or variation…', 'wc-search-orders-by-product' ), 'data-action' => 'woocommerce_json_search_products_and_variations', 'data-allow_clear' => 'true', ) ); -
/** * Product types offered in the filter. */ apply_filters( 'wc_search_orders_by_product_product_types', wc_get_product_types() ); -
/** * Arguments of the filtered HPOS list query, for add-ons that filter by fields * wc_get_orders() already understands. */ apply_filters( 'wc_search_orders_by_product_query_args', $query_args, $values ); -
/** * Most recently changed orders matched through a literal id list. Above it, * the request uses order item meta instead of the lookup table. */ apply_filters( 'wc_search_orders_by_product_recent_limit', self::RECENT_LIMIT ); -
/** * Sanitised filter values read from the request. */ apply_filters( 'wc_search_orders_by_product_request', $values ); -
/** * Settings about to be saved from a settings form. */ apply_filters( 'wc_search_orders_by_product_sanitize_settings', $settings, $raw ); -
/** * After the switches on the settings page, inside the Orders list card. */ do_action( 'wc_search_orders_by_product_settings_after_fields', $settings ); -
/** * Print an add-on's own sections on the Settings tab, inside the settings * form. */ do_action( 'wc_search_orders_by_product_settings_sections', $settings ); -
/** * Filters whether a log entry is written. */ apply_filters( 'wpheka_framework_logging', $this->enabled, $message, $this->source ); -
do_action( 'before_wc_search_orders_by_product_init' ); -
apply_filters( 'plugin_locale', $locale, $this->text_domain ); -
do_action( 'wc_search_orders_by_product_init' ); -
do_action( 'wc_search_orders_by_product_loaded' ); -
do_action( 'wc_search_orders_by_product_ready', $this );
Generated from WPHEKA Search & Filter Orders by Product's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: