WordPress filter hook

pw_cmb2_field_select2_asset_path

Fired by 13 WordPress plugins, running on 33K+ sites between them.

How to use pw_cmb2_field_select2_asset_path

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( 'pw_cmb2_field_select2_asset_path', function( $plugins_url ) {
	// Change $plugins_url here.
	return $plugins_url;
}, 10, 1 );

Argument names come from MP3 Audio Player's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

13 plugins that fire pw_cmb2_field_select2_asset_path

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. MP3 Audio Player icon MP3 Audio Player20,000+ installs apply_filters( 'pw_cmb2_field_select2_asset_path', plugins_url( '', __FILE__ ) ) admin/library/cmb-field-select2-master/cmb-field-select2.php:210
  2. Cryptocurrency Widgets icon Cryptocurrency Widgets6,000+ installs apply_filters( 'pw_cmb2_field_select2_asset_path', plugins_url( '', __FILE__ ) ) admin/cmb2/cmb-field-select2/cmb-field-select2.php:170
  3. Event Single Page Builder For The Events Calendar icon Event Single Page Builder For The Events Calendar6,000+ installs apply_filters( 'pw_cmb2_field_select2_asset_path', plugins_url( '', __FILE__ ) ) admin/cmb2/cmb-field-select2/cmb-field-select2.php:168
  4. MediaBlaster icon MediaBlaster200+ installs apply_filters( 'pw_cmb2_field_select2_asset_path', plugins_url( '', __FILE__ ) ) lib/cmb-field-select2.php:166
  5. CommonsBooking icon CommonsBooking200+ installs apply_filters( 'pw_cmb2_field_select2_asset_path', plugins_url( '', __FILE__ ) ) vendor-prefixed/mustardbees/cmb-field-select2/cmb-field-select2.php:184
  6. peLightbox Gallery Slider icon peLightbox Gallery Slider200+ installs apply_filters( 'pw_cmb2_field_select2_asset_path', plugins_url('', __FILE__) ) admin/src/cmb2-select2/select2.php:177
  7. Niso Carousel Slider icon Niso Carousel Slider200+ installs apply_filters( 'pw_cmb2_field_select2_asset_path', plugins_url('', __FILE__) ) admin/src/cmb2-select2/cmb-field-select2.php:178
  8. Niso Carousel icon Niso Carousel40+ installs apply_filters( 'pw_cmb2_field_select2_asset_path', plugins_url( '', __FILE__ ) ) admin/src/cmb-field-select2/cmb-field-select2.php:177
  9. Tour Operator icon Tour Operator30+ installs apply_filters( 'pw_cmb2_field_select2_asset_path', plugins_url( '', __FILE__ ) ) plugins/cmb-field-select2/cmb-field-select2.php:190
  10. Cryptocurrency icon Cryptocurrency10+ installs apply_filters( 'pw_cmb2_field_select2_asset_path', plugins_url( '', __FILE__ ) ) cmb2/cmb-field-select2/cmb-field-select2.php:166
  11. Palto Carousel icon Palto Carousel10+ installs apply_filters( 'pw_cmb2_field_select2_asset_path', plugins_url( '', __FILE__ ) ) admin/src/cmb-field-select2/cmb-field-select2.php:166
  12. Haru Vidi icon Haru Vidi10+ installs apply_filters( 'pw_cmb2_field_select2_asset_path', plugins_url( '', __FILE__ ) ) includes/libraries/cmb-field-select2/cmb-field-select2.php:176
  13. Home animation slider icon Home animation sliderFewer than 10 installs apply_filters( 'pw_cmb2_field_select2_asset_path', plugins_url( '', __FILE__ ) ) admin/src/cmb-field-select2/cmb-field-select2.php:177

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.