WordPress filter hook
cmb2_attached_posts_field_assets_url
Fired by 7 WordPress plugins, running on 260+ sites between them.
How to use cmb2_attached_posts_field_assets_url
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( 'cmb2_attached_posts_field_assets_url', function( $url ) {
// Change $url here.
return $url;
}, 10, 1 );Argument names come from MediaBlaster's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
7 plugins that fire cmb2_attached_posts_field_assets_url
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
MediaBlaster200+ installs
apply_filters( 'cmb2_attached_posts_field_assets_url', $url )lib/WDS_CMB2_Attached_Posts.php:471 -
X-tra Ordinary WooCommerce Product Carousel and Slider20+ installs
apply_filters( 'cmb2_attached_posts_field_assets_url', $url )includes/cmb2-attached-posts/init.php:471 -
Automatic Actions for LearnDash10+ installs
apply_filters( 'cmb2_attached_posts_field_assets_url', $url )includes/cmb2-attached-posts/init.php:472 -
Disable Fast Velocity Minify10+ installs
apply_filters( 'cmb2_attached_posts_field_assets_url', $url )includes/cmb2-attached-posts/init.php:472 -
HiiWaterwheel WordPress Plugin10+ installs
apply_filters( 'cmb2_attached_posts_field_assets_url', $url )lib/cmb2-attached-posts-field/init.php:471 -
Haru Vidi10+ installs
apply_filters( 'cmb2_attached_posts_field_assets_url', $url )includes/libraries/cmb2-attached-posts/init.php:485 -
fyventFewer than 10 installs
apply_filters( 'cmb2_attached_posts_field_assets_url', $url )includes/lib/cmb2-attached-posts/init.php:489
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.