PluginProbe
Booktics – Appointment Booking Calendar for Service Businesses / 1.0.27
Booktics – Appointment Booking Calendar for Service Businesses v1.0.27
1.0.29 1.0.28 1.0.27 1.0.26 1.0.25 1.0.24 1.0.23 1.0.22 1.0.21 1.0.20 1.0.19 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.2 1.0.3 All 31 releases
← All changes | core/payment/payment-method-manager.php +7 -0 1.0.0 → 1.0.27 View file →
@@ -30,8 +30,15 @@
30 30 public function get_payment_methods(): array {
31 31 return apply_filters( 'booktics_payment_methods', $this->payment_methods );
32 32 }
33 33
34 + /**
35 + * Get a payment method by its ID
36 + *
37 + * @param string $id
38 + *
39 + * @return Payment_Method_Interface|null Returns the payment method instance or null if not found
40 + */
34 41 public function get_payment_method( string $id ): ?Payment_Method_Interface {
35 42 $payment_methods = $this->get_payment_methods();
36 43 if ( ! isset( $payment_methods[ $id ] ) ) {
37 44 return null;