WordPress action hook

eb_frontend_assets

Fired by 24 WordPress plugins, running on 137K+ sites between them.

“Hooks assets for enqueue in frontend”

How to use eb_frontend_assets

It's an action: your callback runs at that point and receives 2 arguments. Nothing needs to be returned. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_action( 'eb_frontend_assets', function( $eb_style_dir, $eb_style_url ) {
	// Your code runs here.
}, 10, 2 );

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

24 plugins that fire eb_frontend_assets

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

  1. Gutenberg Essential Blocks icon Gutenberg Essential Blocks100,000+ installs do_action( 'eb_frontend_assets', $this->style_dir, $this->style_url ) includes/Modules/StyleHandler.php:290
  2. Table Of Contents Block icon Table Of Contents Block9,000+ installs do_action( 'eb_frontend_assets', $this->eb_style_dir, $this->eb_style_url ) lib/style-handler/style-handler.php:300
  3. Better Payment icon Better Payment5,000+ installs do_action( 'eb_frontend_assets', $this->style_dir, $this->style_url ) includes/Blocks/StyleHandler.php:242
  4. Countdown Block icon Countdown Block4,000+ installs do_action( 'eb_frontend_assets', $this->eb_style_dir, $this->eb_style_url ) lib/style-handler/style-handler.php:300
  5. Image Gallery Block icon Image Gallery Block4,000+ installs do_action( 'eb_frontend_assets', $this->eb_style_dir, $this->eb_style_url ) lib/style-handler/style-handler.php:300
  6. Image Slider Block icon Image Slider Block4,000+ installs do_action( 'eb_frontend_assets', $this->eb_style_dir, $this->eb_style_url ) lib/style-handler/style-handler.php:300
  7. Accordion Toggle icon Accordion Toggle2,000+ installs do_action( 'eb_frontend_assets', $this->eb_style_dir, $this->eb_style_url ) lib/style-handler/style-handler.php:300
  8. Flipbox icon Flipbox2,000+ installs do_action( 'eb_frontend_assets', $this->eb_style_dir, $this->eb_style_url ) lib/style-handler/style-handler.php:300
  9. Team Member Block icon Team Member Block1,000+ installs do_action( 'eb_frontend_assets', $this->eb_style_dir, $this->eb_style_url ) lib/style-handler/style-handler.php:300
  10. Infobox icon Infobox1,000+ installs do_action( 'eb_frontend_assets', $this->eb_style_dir, $this->eb_style_url ) lib/style-handler/style-handler.php:300
  11. Parallax Slider Block icon Parallax Slider Block900+ installs do_action( 'eb_frontend_assets', $this->eb_style_dir, $this->eb_style_url ) lib/style-handler/style-handler.php:300
  12. Price Table Block icon Price Table Block800+ installs do_action( 'eb_frontend_assets', $this->eb_style_dir, $this->eb_style_url ) lib/style-handler/style-handler.php:300
  13. Toggle Content icon Toggle Content700+ installs do_action( 'eb_frontend_assets', $this->eb_style_dir, $this->eb_style_url ) lib/style-handler/style-handler.php:300
  14. Typing Text icon Typing Text500+ installs do_action( 'eb_frontend_assets', $this->eb_style_dir, $this->eb_style_url ) lib/style-handler/style-handler.php:231
  15. Progress Bars icon Progress Bars500+ installs do_action( 'eb_frontend_assets', $this->eb_style_dir, $this->eb_style_url ) lib/style-handler/style-handler.php:300
  16. Testimonial Block icon Testimonial Block500+ installs do_action( 'eb_frontend_assets', $this->eb_style_dir, $this->eb_style_url ) lib/style-handler/style-handler.php:300
  17. Image Comparison icon Image Comparison300+ installs do_action( 'eb_frontend_assets', $this->eb_style_dir, $this->eb_style_url ) lib/style-handler/style-handler.php:300
  18. Advanced Heading icon Advanced Heading200+ installs do_action( 'eb_frontend_assets', $this->eb_style_dir, $this->eb_style_url ) lib/style-handler/style-handler.php:300
  19. Number Counter icon Number Counter100+ installs do_action( 'eb_frontend_assets', $this->eb_style_dir, $this->eb_style_url ) lib/style-handler/style-handler.php:300
  20. Button Group icon Button Group100+ installs do_action( 'eb_frontend_assets', $this->eb_style_dir, $this->eb_style_url ) lib/style-handler/style-handler.php:300
  21. Notice Block icon Notice Block80+ installs do_action( 'eb_frontend_assets', $this->eb_style_dir, $this->eb_style_url ) lib/style-handler/style-handler.php:300
  22. Social Share Block icon Social Share Block50+ installs do_action( 'eb_frontend_assets', $this->eb_style_dir, $this->eb_style_url ) lib/style-handler/style-handler.php:300
  23. Interactive Promo icon Interactive Promo50+ installs do_action( 'eb_frontend_assets', $this->eb_style_dir, $this->eb_style_url ) lib/style-handler/style-handler.php:300
  24. EB Openverse Block icon EB Openverse Block10+ installs do_action( 'eb_frontend_assets', $this->eb_style_dir, $this->eb_style_url ) lib/style-handler/style-handler.php:300

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.