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:

functions.php
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.

  1. Business Template Blocks for WPBakery (Visual Composer) Page Builder icon 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
  2. Sticky One-Many icon Sticky One-Many10+ installs apply_filters( 'cs_add_icons_json', glob( CS_DIR . '/fields/icon/*.json' ) ) library/csf/functions/actions.php:15
  3. My Right Horse icon My Right Horse10+ installs apply_filters( 'cs_add_icons_json', glob( CS_DIR . '/fields/icon/*.json' ) ) functions/actions.php:15
  4. Back Top icon Back Top10+ installs apply_filters( 'cs_add_icons_json', glob( CS_DIR . '/fields/icon/*.json' ) ) setting-page/functions/actions.php:15
  5. CC Manga Comic Reader icon CC Manga Comic Reader10+ installs apply_filters( 'cs_add_icons_json', glob( CS_DIR . '/fields/icon/*.json' ) ) lib/codestar-framework/functions/actions.php:15
  6. Essential Hover Effects icon Essential Hover Effects10+ installs apply_filters( 'cs_add_icons_json', glob( CS_DIR . '/fields/icon/*.json' ) ) admin/framework/functions/actions.php:15
  7. Amazing Portfolio icon Amazing Portfolio10+ installs apply_filters( 'cs_add_icons_json', glob( CS_DIR . '/fields/icon/*.json' ) ) inc/framework/functions/actions.php:15
  8. Ultimate Carousel icon Ultimate Carousel10+ installs apply_filters( 'cs_add_icons_json', glob( CS_DIR . '/fields/icon/*.json' ) ) inc/framework/functions/actions.php:15
  9. All in All Image Hover Effect icon 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.