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:
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.
-
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 -
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 -
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 -
MediaBlaster200+ installs
apply_filters( 'pw_cmb2_field_select2_asset_path', plugins_url( '', __FILE__ ) )lib/cmb-field-select2.php:166 -
CommonsBooking200+ installs
apply_filters( 'pw_cmb2_field_select2_asset_path', plugins_url( '', __FILE__ ) )vendor-prefixed/mustardbees/cmb-field-select2/cmb-field-select2.php:184 -
peLightbox Gallery Slider200+ installs
apply_filters( 'pw_cmb2_field_select2_asset_path', plugins_url('', __FILE__) )admin/src/cmb2-select2/select2.php:177 -
Niso Carousel Slider200+ installs
apply_filters( 'pw_cmb2_field_select2_asset_path', plugins_url('', __FILE__) )admin/src/cmb2-select2/cmb-field-select2.php:178 -
Niso Carousel40+ installs
apply_filters( 'pw_cmb2_field_select2_asset_path', plugins_url( '', __FILE__ ) )admin/src/cmb-field-select2/cmb-field-select2.php:177 -
Tour Operator30+ installs
apply_filters( 'pw_cmb2_field_select2_asset_path', plugins_url( '', __FILE__ ) )plugins/cmb-field-select2/cmb-field-select2.php:190 -
Cryptocurrency10+ installs
apply_filters( 'pw_cmb2_field_select2_asset_path', plugins_url( '', __FILE__ ) )cmb2/cmb-field-select2/cmb-field-select2.php:166 -
Palto Carousel10+ installs
apply_filters( 'pw_cmb2_field_select2_asset_path', plugins_url( '', __FILE__ ) )admin/src/cmb-field-select2/cmb-field-select2.php:166 -
Haru Vidi10+ installs
apply_filters( 'pw_cmb2_field_select2_asset_path', plugins_url( '', __FILE__ ) )includes/libraries/cmb-field-select2/cmb-field-select2.php:176 -
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.