woocommerce_fulfillment_meta_key_translations
Filter to translate fulfillment meta keys.
This filter allows us to translate fulfillment meta keys to make them more user-friendly in the admin interface and emails.
Usage
add_filter( 'woocommerce_fulfillment_meta_key_translations', 'wp_kama_woocommerce_fulfillment_meta_key_translations_filter' );
/**
* Function for `woocommerce_fulfillment_meta_key_translations` filter-hook.
*
* @param $array
*
* @return
*/
function wp_kama_woocommerce_fulfillment_meta_key_translations_filter( $array ){
// filter...
return $array;
}
- $array
- -
Changelog
| Since 10.1.0 | Introduced. |
Where the hook is called
woocommerce_fulfillment_meta_key_translations
woocommerce/src/Internal/Fulfillments/FulfillmentsManager.php 74-81
$meta_key_translations = apply_filters( 'woocommerce_fulfillment_meta_key_translations', array( 'fulfillment_status' => __( 'Fulfillment Status', 'woocommerce' ), 'shipment_tracking' => __( 'Shipment Tracking', 'woocommerce' ), 'shipment_provider' => __( 'Shipment Provider', 'woocommerce' ), ) );