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:
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.
-
Cost Calculator Builder20,000+ installs
apply_filters( 'vite_for_wp__development_assets', $assets, $manifest, $entry, $options )includes/helpers/vite-integration.php:238 -
Better Badge600+ installs
apply_filters( 'vite_for_wp__development_assets', $assets, $manifest, $entry, $options )libs/assets.php:250 -
Yabe Ukiyo50+ installs
apply_filters( 'vite_for_wp__development_assets', $assets, $manifest, $entry, $options )src/Utils/AssetVite.php:305 -
PayTheFly Crypto GatewayFewer than 10 installs
apply_filters( 'vite_for_wp__development_assets', $assets, $manifest, $entry, $options )includes/vite-for-wp.php:258 -
TERAX AI AssistantFewer than 10 installs
apply_filters( 'vite_for_wp__development_assets', $assets, $manifest, $entry, $options )libs/assets.php:260 -
Catcher24 ConnectorFewer than 10 installs
apply_filters( 'vite_for_wp__development_assets', $assets, $manifest, $entry, $options )libs/assets.php:255 -
CookieTrustFewer than 10 installs
apply_filters( 'vite_for_wp__development_assets', $assets, $manifest, $entry, $options )libs/assets.php:248 -
ServiceEZFewer than 10 installs
apply_filters( 'vite_for_wp__development_assets', $assets, $manifest, $entry, $options )libs/assets.php:246 -
Streamery FormsFewer than 10 installs
apply_filters( 'vite_for_wp__development_assets', $assets, $manifest, $entry, $options )libs/assets.php:253 -
Better RecoveryFewer than 10 installs
apply_filters( 'vite_for_wp__development_assets', $assets, $manifest, $entry, $options )libs/assets.php:250 -
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.