WordPress action hook

themify_metabox_register_assets

Fired by 5 WordPress plugins, running on 46K+ sites between them.

How to use themify_metabox_register_assets

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

functions.php
add_action( 'themify_metabox_register_assets', function() {
	// Your code runs here.
}, 10, 1 );

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

5 plugins that fire themify_metabox_register_assets

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

  1. Themify Portfolio Post icon Themify Portfolio Post30,000+ installs do_action( 'themify_metabox_register_assets' ) includes/themify-metabox/includes/themify-metabox-core.php:502
  2. Themify Popup icon Themify Popup8,000+ installs do_action( 'themify_metabox_register_assets' ) includes/themify-metabox/includes/themify-metabox-core.php:579
  3. Themify Builder icon Themify Builder6,000+ installs do_action( 'themify_metabox_register_assets' ) themify/themify-metabox/includes/themify-metabox-core.php:606
  4. Themify Event Post icon Themify Event Post2,000+ installs do_action( 'themify_metabox_register_assets' ) includes/themify-metabox/includes/themify-metabox-core.php:498
  5. Themify Store Locator icon Themify Store Locator400+ installs do_action( 'themify_metabox_register_assets' ) includes/themify-metabox/includes/themify-metabox-core.php:498

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.