wc_order_attribution_field_description
Filter the description for the order attribution field.
Usage
add_filter( 'wc_order_attribution_field_description', 'wp_kama_wc_order_attribution_field_description_filter', 10, 2 );
/**
* Function for `wc_order_attribution_field_description` filter-hook.
*
* @param string $description The description for the order attribution field.
* @param string $field_name The field name.
*
* @return string
*/
function wp_kama_wc_order_attribution_field_description_filter( $description, $field_name ){
// filter...
return $description;
}
- $description(string)
- The description for the order attribution field.
- $field_name(string)
- The field name.
Changelog
| Since 8.5.0 | Introduced. |
Where the hook is called
wc_order_attribution_field_description
woocommerce/src/Internal/Traits/OrderAttributionMeta.php 391
return (string) apply_filters( 'wc_order_attribution_field_description', $description, $field_name );