mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Fix filter conventions
This commit is contained in:
parent
c5f91a9024
commit
cae2e60453
1 changed files with 5 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue