WordPress filter hook
wcfmmp_store_query_var
Fired by 3 WordPress plugins, running on 80K+ sites between them.
How to use wcfmmp_store_query_var
It's a filter: your callback receives the value, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'wcfmmp_store_query_var', function( $query_var ) {
// Change $query_var here.
return $query_var;
}, 10, 1 );Argument names come from Advanced Woo Search's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
3 plugins that fire wcfmmp_store_query_var
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Advanced Woo Search60,000+ installs
apply_filters( 'wcfmmp_store_query_var', get_query_var( $wcfm_store_url ) )includes/modules/class-aws-wcfm.php:329 -
WCFM Marketplace10,000+ installs
apply_filters( 'wcfmmp_store_query_var', get_query_var( $wcfm_store_url ) )core/class-wcfmmp-frontend.php:880 -
WCFM10,000+ installs
apply_filters( 'wcfmmp_store_query_var', get_query_var( $wcfm_store_url ) )includes/shortcodes/class-wcfm-shortcode-policy.php:36
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.