diff --git a/src/Packetery/Module/Carrier/Repository.php b/src/Packetery/Module/Carrier/Repository.php index a4cf23608..3e47f1017 100644 --- a/src/Packetery/Module/Carrier/Repository.php +++ b/src/Packetery/Module/Carrier/Repository.php @@ -117,7 +117,7 @@ public function getAllIncludingZpoints(): ?array { array_unshift( $carriers, $zpointCarrier ); } - return $carriers; + return apply_filters( 'packeta_all_carriers', $carriers ); } /** diff --git a/src/Packetery/Module/Checkout.php b/src/Packetery/Module/Checkout.php index a94ba98cd..af383b780 100644 --- a/src/Packetery/Module/Checkout.php +++ b/src/Packetery/Module/Checkout.php @@ -322,7 +322,7 @@ public function createSettings(): array { } } - return [ + return apply_filters( 'packeta_checkout_settings', [ /** * Filter widget language in checkout. * @@ -348,7 +348,7 @@ public function createSettings(): array { 'addressIsNotValidated' => __( 'Delivery address has not been verified.', 'packeta' ), 'addressIsNotValidatedAndRequiredByCarrier' => __( 'Delivery address has not been verified. Verification of delivery address is required by this carrier.', 'packeta' ), ], - ]; + ] ); } /** @@ -739,7 +739,7 @@ public function getShippingRates(): array { } } - return $customRates; + return apply_filters( 'packeta_shipping_rates', $customRates ); } /**