woocommerce_fulfillment_shipment_provider_label
Filters the shipment provider label shown to customers.
Usage
add_filter( 'woocommerce_fulfillment_shipment_provider_label', 'wp_kama_woocommerce_fulfillment_shipment_provider_label_filter', 10, 2 );
/**
* Function for `woocommerce_fulfillment_shipment_provider_label` filter-hook.
*
* @param string $label The resolved provider label.
* @param Fulfillment $fulfillment The fulfillment object.
*
* @return string
*/
function wp_kama_woocommerce_fulfillment_shipment_provider_label_filter( $label, $fulfillment ){
// filter...
return $label;
}
- $label(string)
- The resolved provider label.
- $fulfillment(Fulfillment)
- The fulfillment object.
Changelog
| Since 11.3.0 | Introduced. |
Where the hook is called
woocommerce_fulfillment_shipment_provider_label
woocommerce/src/Admin/Features/Fulfillments/FulfillmentUtils.php 783
$filtered_label = apply_filters( 'woocommerce_fulfillment_shipment_provider_label', $label, $fulfillment );