WordPress filter hook

vite_for_wp__development_assets

Fired by 11 WordPress plugins, running on 21K+ sites between them.

“Filter registered development assets”

How to use vite_for_wp__development_assets

It's a filter: your callback receives the value and 3 more arguments, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'vite_for_wp__development_assets', function( $assets, $manifest, $entry, $options ) {
	// Change $assets here.
	return $assets;
}, 10, 4 );

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

11 plugins that fire vite_for_wp__development_assets

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

  1. Cost Calculator Builder icon Cost Calculator Builder20,000+ installs apply_filters( 'vite_for_wp__development_assets', $assets, $manifest, $entry, $options ) includes/helpers/vite-integration.php:238
  2. Better Badge icon Better Badge600+ installs apply_filters( 'vite_for_wp__development_assets', $assets, $manifest, $entry, $options ) libs/assets.php:250
  3. Yabe Ukiyo icon Yabe Ukiyo50+ installs apply_filters( 'vite_for_wp__development_assets', $assets, $manifest, $entry, $options ) src/Utils/AssetVite.php:305
  4. PayTheFly Crypto Gateway icon PayTheFly Crypto GatewayFewer than 10 installs apply_filters( 'vite_for_wp__development_assets', $assets, $manifest, $entry, $options ) includes/vite-for-wp.php:258
  5. TERAX AI Assistant icon TERAX AI AssistantFewer than 10 installs apply_filters( 'vite_for_wp__development_assets', $assets, $manifest, $entry, $options ) libs/assets.php:260
  6. Catcher24 Connector icon Catcher24 ConnectorFewer than 10 installs apply_filters( 'vite_for_wp__development_assets', $assets, $manifest, $entry, $options ) libs/assets.php:255
  7. CookieTrust icon CookieTrustFewer than 10 installs apply_filters( 'vite_for_wp__development_assets', $assets, $manifest, $entry, $options ) libs/assets.php:248
  8. ServiceEZ icon ServiceEZFewer than 10 installs apply_filters( 'vite_for_wp__development_assets', $assets, $manifest, $entry, $options ) libs/assets.php:246
  9. Streamery Forms icon Streamery FormsFewer than 10 installs apply_filters( 'vite_for_wp__development_assets', $assets, $manifest, $entry, $options ) libs/assets.php:253
  10. Better Recovery icon Better RecoveryFewer than 10 installs apply_filters( 'vite_for_wp__development_assets', $assets, $manifest, $entry, $options ) libs/assets.php:250
  11. Product Photo AI for WooCommerce icon Product Photo AI for WooCommerceFewer than 10 installs apply_filters( 'vite_for_wp__development_assets', $assets, $manifest, $entry, $options ) libs/assets.php:254

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.