wc_order_attribution_tracking_field_prefix filter-hookWC 8.5.0

Filter the prefix for the meta fields.

Usage

add_filter( 'wc_order_attribution_tracking_field_prefix', 'wp_kama_wc_order_attribution_tracking_field_prefix_filter' );

/**
 * Function for `wc_order_attribution_tracking_field_prefix` filter-hook.
 * 
 * @param string $prefix The prefix for the meta fields.
 *
 * @return string
 */
function wp_kama_wc_order_attribution_tracking_field_prefix_filter( $prefix ){

	// filter...
	return $prefix;
}
$prefix(string)
The prefix for the meta fields.

Changelog

Since 8.5.0 Introduced.

Where the hook is called

In file: /src/Internal/Traits/OrderAttributionMeta.php
wc_order_attribution_tracking_field_prefix
woocommerce/src/Internal/Traits/OrderAttributionMeta.php 114-117
$prefix = (string) apply_filters(
	'wc_order_attribution_tracking_field_prefix',
	'wc_order_attribution_'
);

Where the hook is used in WooCommerce

Usage not found.