WordPress filter hook
ic_cat_extensions
Fired by 3 WordPress plugins, running on 9,000+ sites between them.
How to use ic_cat_extensions
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( 'ic_cat_extensions', function( $extensions ) {
// Change $extensions here.
return $extensions;
}, 10, 1 );Argument names come from eCommerce Product Catalog's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
3 plugins that fire ic_cat_extensions
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
eCommerce Product Catalog7,000+ installs
apply_filters( 'ic_cat_extensions', $extensions )includes/extensions.php:225 -
Product Catalog Simple1,000+ installs
apply_filters( 'ic_cat_extensions', $extensions )core/includes/extensions.php:216 -
Catalog Booster & Product Catalog Mode for WooCommerce1,000+ installs
apply_filters( 'ic_cat_extensions', $extensions )includes/woocat_settings.php:319
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.