wc_order_attribution_tracking_field_prefix
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
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_' );