WordPress filter hook
cs_add_icons_json
Fired by 9 WordPress plugins, running on 130+ sites between them.
How to use cs_add_icons_json
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( 'cs_add_icons_json', function( $glob ) {
// Change $glob here.
return $glob;
}, 10, 1 );Argument names come from Business Template Blocks for WPBakery (Visual Composer) Page Builder's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
9 plugins that fire cs_add_icons_json
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Business Template Blocks for WPBakery (Visual Composer) Page Builder60+ installs
apply_filters( 'cs_add_icons_json', glob( CS_DIR . '/fields/icon/*.json' ) )inc/framework/functions/actions.php:15 -
Sticky One-Many10+ installs
apply_filters( 'cs_add_icons_json', glob( CS_DIR . '/fields/icon/*.json' ) )library/csf/functions/actions.php:15 -
My Right Horse10+ installs
apply_filters( 'cs_add_icons_json', glob( CS_DIR . '/fields/icon/*.json' ) )functions/actions.php:15 -
Back Top10+ installs
apply_filters( 'cs_add_icons_json', glob( CS_DIR . '/fields/icon/*.json' ) )setting-page/functions/actions.php:15 -
CC Manga Comic Reader10+ installs
apply_filters( 'cs_add_icons_json', glob( CS_DIR . '/fields/icon/*.json' ) )lib/codestar-framework/functions/actions.php:15 -
Essential Hover Effects10+ installs
apply_filters( 'cs_add_icons_json', glob( CS_DIR . '/fields/icon/*.json' ) )admin/framework/functions/actions.php:15 -
Amazing Portfolio10+ installs
apply_filters( 'cs_add_icons_json', glob( CS_DIR . '/fields/icon/*.json' ) )inc/framework/functions/actions.php:15 -
Ultimate Carousel10+ installs
apply_filters( 'cs_add_icons_json', glob( CS_DIR . '/fields/icon/*.json' ) )inc/framework/functions/actions.php:15 -
All in All Image Hover EffectFewer than 10 installs
apply_filters( 'cs_add_icons_json', glob( CS_DIR . '/fields/icon/*.json' ) )cu-framework/functions/actions.php:15
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.