WordPress filter hook

vite_for_wp__manifest_data

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

“Filter manifest data”

How to use vite_for_wp__manifest_data

It's a filter: your callback receives the value and 2 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__manifest_data', function( $manifest, $manifest_dir, $manifest_path ) {
	// Change $manifest here.
	return $manifest;
}, 10, 3 );

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__manifest_data

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__manifest_data', $manifest, $manifest_dir, $manifest_path ) includes/helpers/vite-integration.php:60
  2. Better Badge icon Better Badge600+ installs apply_filters( 'vite_for_wp__manifest_data', $manifest, $manifest_dir, $manifest_path ) libs/assets.php:71
  3. Yabe Ukiyo icon Yabe Ukiyo40+ installs apply_filters( 'vite_for_wp__manifest_data', $manifest, $manifest_dir, $manifest_path ) src/Utils/AssetVite.php:157
  4. PayTheFly Crypto Gateway icon PayTheFly Crypto GatewayFewer than 10 installs apply_filters( 'vite_for_wp__manifest_data', $manifest, $manifest_dir, $manifest_path ) includes/vite-for-wp.php:74
  5. TERAX AI Assistant icon TERAX AI AssistantFewer than 10 installs apply_filters( 'vite_for_wp__manifest_data', $manifest, $manifest_dir, $manifest_path ) libs/assets.php:72
  6. Catcher24 Connector icon Catcher24 ConnectorFewer than 10 installs apply_filters( 'vite_for_wp__manifest_data', $manifest, $manifest_dir, $manifest_path ) libs/assets.php:72
  7. CookieTrust icon CookieTrustFewer than 10 installs apply_filters( 'vite_for_wp__manifest_data', $manifest, $manifest_dir, $manifest_path ) libs/assets.php:71
  8. ServiceEZ icon ServiceEZFewer than 10 installs apply_filters( 'vite_for_wp__manifest_data', $manifest, $manifest_dir, $manifest_path ) libs/assets.php:69
  9. Streamery Forms icon Streamery FormsFewer than 10 installs apply_filters( 'vite_for_wp__manifest_data', $manifest, $manifest_dir, $manifest_path ) libs/assets.php:76
  10. Better Recovery icon Better RecoveryFewer than 10 installs apply_filters( 'vite_for_wp__manifest_data', $manifest, $manifest_dir, $manifest_path ) libs/assets.php:71
  11. Product Photo AI for WooCommerce icon Product Photo AI for WooCommerceFewer than 10 installs apply_filters( 'vite_for_wp__manifest_data', $manifest, $manifest_dir, $manifest_path ) libs/assets.php:71

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.