Fix filter conventions

This commit is contained in:
Alex P 2023-02-20 12:15:15 +02:00
parent c5f91a9024
commit cae2e60453
No known key found for this signature in database
GPG key ID: 54487A734A204D71

View file

@ -155,8 +155,11 @@ class CompatModule implements ModuleInterface {
$provider = $shipment->get_shipping_provider();
if ( ! empty( $provider ) && $provider !== 'none' ) {
$fallback_carrier = 'DHL_DEUTSCHE_POST';
$tracking_data['carrier'] = apply_filters('filter_paypal_payments_tracking_data_carrier',$fallback_carrier,$provider);
/**
* The filter allowing to change the default Germanized carrier for order tracking,
* such as DHL_DEUTSCHE_POST, DPD_DE, ...
*/
$tracking_data['carrier'] = apply_filters( 'woocommerce_paypal_payments_default_gzd_carrier', 'DHL_DEUTSCHE_POST', $provider );
}
try {