WordPress filter hook

butterbean_dir_uri

Fired by 9 WordPress plugins, running on 510K+ sites between them.

How to use butterbean_dir_uri

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

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

9 plugins that fire butterbean_dir_uri

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

  1. Ocean Extra icon Ocean Extra400,000+ installs apply_filters( 'butterbean_dir_uri', trailingslashit( plugin_dir_url( __FILE__ ) ) ) includes/metabox/butterbean/class-butterbean.php:159
  2. WP Show Posts icon WP Show Posts60,000+ installs apply_filters( 'butterbean_dir_uri', trailingslashit( plugin_dir_url( __FILE__ ) ) ) admin/butterbean/class-butterbean.php:145
  3. BoldGrid Easy SEO icon BoldGrid Easy SEO40,000+ installs apply_filters( 'butterbean_dir_uri', trailingslashit( plugin_dir_url( __FILE__ ) ) ) includes/lib/butterbean/class-butterbean.php:145
  4. Motors icon Motors8,000+ installs apply_filters( 'butterbean_dir_uri', trailingslashit( plugin_dir_url( __FILE__ ) ) ) includes/admin/butterbean/class-butterbean.php:152
  5. Attesa Extra icon Attesa Extra1,000+ installs apply_filters( 'butterbean_dir_uri', trailingslashit( plugin_dir_url( __FILE__ ) ) ) metabox/butterbean/class-butterbean.php:154
  6. Ultra Companion icon Ultra Companion1,000+ installs apply_filters( 'butterbean_dir_uri', trailingslashit( plugin_dir_url( __FILE__ ) ) ) inc/metabox/butterbean/class-butterbean.php:145
  7. Custom Content Portfolio icon Custom Content Portfolio200+ installs apply_filters( 'butterbean_dir_uri', trailingslashit( plugin_dir_url( __FILE__ ) ) ) admin/butterbean/class-butterbean.php:145
  8. Sierra Addons icon Sierra Addons80+ installs apply_filters( 'butterbean_dir_uri', trailingslashit( plugin_dir_url( __FILE__ ) ) ) inc/butterbean/class-butterbean.php:145
  9. LQThemes Companion icon LQThemes Companion40+ installs apply_filters( 'butterbean_dir_uri', trailingslashit( plugin_dir_url( __FILE__ ) ) ) inc/metabox/butterbean/class-butterbean.php:145

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.