WordPress filter hook

wc_order_attribution_tracking_field_prefix

Fired by 25 WordPress plugins, running on 10.6M+ sites between them.

“Filter the prefix for the meta fields.”

How to use wc_order_attribution_tracking_field_prefix

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

functions.php
add_filter( 'wc_order_attribution_tracking_field_prefix', function( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

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

25 plugins that fire wc_order_attribution_tracking_field_prefix

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

  1. WooCommerce icon WooCommerce7+ million installs apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' ) src/Internal/Traits/OrderAttributionMeta.php:114
  2. Jetpack icon Jetpack3+ million installs apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' ) jetpack_vendor/automattic/jetpack-sync/src/modules/class-woocommerce-analytics.php:651
  3. Jetpack Boost icon Jetpack Boost200,000+ installs apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' ) jetpack_vendor/automattic/jetpack-sync/src/modules/class-woocommerce-analytics.php:651
  4. Advanced Order Export For WooCommerce icon Advanced Order Export For WooCommerce100,000+ installs apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' ) classes/core/trait-woe-core-extractor.php:1379
  5. Jetpack Protect icon Jetpack Protect100,000+ installs apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' ) jetpack_vendor/automattic/jetpack-sync/src/modules/class-woocommerce-analytics.php:651
  6. Reddit for WooCommerce icon Reddit for WooCommerce90,000+ installs apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' ) includes/Admin/MetaBox/OrderAttributionData.php:113
  7. Jetpack Social icon Jetpack Social30,000+ installs apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' ) jetpack_vendor/automattic/jetpack-sync/src/modules/class-woocommerce-analytics.php:651
  8. Jetpack VaultPress Backup icon Jetpack VaultPress Backup20,000+ installs apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' ) jetpack_vendor/automattic/jetpack-sync/src/modules/class-woocommerce-analytics.php:651
  9. Automattic For Agencies Client icon Automattic For Agencies Client20,000+ installs apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' ) jetpack_vendor/automattic/jetpack-sync/src/modules/class-woocommerce-analytics.php:651
  10. Jetpack VideoPress icon Jetpack VideoPress7,000+ installs apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' ) jetpack_vendor/automattic/jetpack-sync/src/modules/class-woocommerce-analytics.php:651
  11. oopspam Anti-Spam: Spam Protection for WordPress Forms & Comments (No CAPTCHA) icon oopspam Anti-Spam: Spam Protection for WordPress Forms & Comments (No CAPTCHA)6,000+ installs apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' ) integration/WooCommerce.php:1079
  12. Jetpack Search icon Jetpack Search5,000+ installs apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' ) jetpack_vendor/automattic/jetpack-sync/src/modules/class-woocommerce-analytics.php:651
  13. Pay with Vipps and MobilePay for WooCommerce icon Pay with Vipps and MobilePay for WooCommerce5,000+ installs apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' ) payment/WC_Gateway_Vipps.class.php:4015
  14. Buckaroo Payments for WooCommerce icon Buckaroo Payments for WooCommerce2,000+ installs apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' ) src/Gateways/Applepay/ApplepayGateway.php:397
  15. Jetpack Stats icon Jetpack Stats1,000+ installs apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' ) jetpack_vendor/automattic/jetpack-sync/src/modules/class-woocommerce-analytics.php:650
  16. BrikPanel: WooCommerce Dashboard & Analytics, Abandoned Cart Recovery, Order Export, Inventory Management & Bulk Editor icon BrikPanel: WooCommerce Dashboard & Analytics, Abandoned Cart Recovery, Order Export, Inventory Management & Bulk Editor1,000+ installs apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' ) includes/brikpanel-wc-compat.php:579
  17. Svea Checkout for WooCommerce icon Svea Checkout for WooCommerce800+ installs apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' ) inc/Scripts.php:92
  18. Advanced Customer Reports for WooCommerce icon Advanced Customer Reports for WooCommerce50+ installs apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' ) inc/functions.php:476
  19. SeoVision Publisher icon SeoVision Publisher10+ installs apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' ) includes/woocommerce-orders.php:251
  20. One Page Checkout for WooCommerce icon One Page Checkout for WooCommerce10+ installs apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' ) inc/order-attribution.php:53
  21. NH2T Orders Export to Excel for WooCommerce icon NH2T Orders Export to Excel for WooCommerce10+ installs apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' ) includes/class-nh2t-wooex-workbook.php:173
  22. AgenticCart icon AgenticCartFewer than 10 installs apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' ) classes/storefront/class-agentic-order-reporter.php:134
  23. Tillbon icon TillbonFewer than 10 installs apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' ) includes/class-counterpos-order.php:28
  24. RomCommerce icon RomCommerceFewer than 10 installs apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' ) src/Modules/StoreReport/Collector.php:166
  25. Goppa icon GoppaFewer than 10 installs apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' ) includes/class-goppa-conversao.php:268

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.