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:
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.
-
WooCommerce7+ million installs
apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' )src/Internal/Traits/OrderAttributionMeta.php:114 -
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 -
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 -
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 -
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 -
Reddit for WooCommerce90,000+ installs
apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' )includes/Admin/MetaBox/OrderAttributionData.php:113 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
Buckaroo Payments for WooCommerce2,000+ installs
apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' )src/Gateways/Applepay/ApplepayGateway.php:397 -
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 -
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 -
Svea Checkout for WooCommerce800+ installs
apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' )inc/Scripts.php:92 -
Advanced Customer Reports for WooCommerce50+ installs
apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' )inc/functions.php:476 -
SeoVision Publisher10+ installs
apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' )includes/woocommerce-orders.php:251 -
One Page Checkout for WooCommerce10+ installs
apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' )inc/order-attribution.php:53 -
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 -
AgenticCartFewer than 10 installs
apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' )classes/storefront/class-agentic-order-reporter.php:134 -
TillbonFewer than 10 installs
apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' )includes/class-counterpos-order.php:28 -
RomCommerceFewer than 10 installs
apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' )src/Modules/StoreReport/Collector.php:166 -
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.