Changeset 3237218
- Timestamp:
- 02/09/2025 09:04:00 AM (14 months ago)
- Location:
- camoo-pay-for-ecommerce/tags/1.0.1/includes
- Files:
-
- 2 edited
-
Gateway.php (modified) (2 diffs)
-
Plugin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
camoo-pay-for-ecommerce/tags/1.0.1/includes/Gateway.php
r3237199 r3237218 57 57 58 58 $this->logger = new Logger\Logger($this->id, WP_DEBUG || $this->testMode); 59 } 60 61 public function get_title() 62 { 63 $gatewayName = empty($this->title) ? Plugin::DEFAULT_TITLE : $this->title; 64 $title = sanitize_text_field($gatewayName); 65 66 return apply_filters('woocommerce_gateway_title', $title, Plugin::WC_CAMOO_PAY_GATEWAY_ID); 59 67 } 60 68 … … 343 351 } 344 352 345 if (empty($status) || !in_array($status, 353 if (empty($status) || !in_array( 354 $status, 346 355 array_map(fn ($status) => strtolower($status->value), Status::cases()) 347 356 )) { -
camoo-pay-for-ecommerce/tags/1.0.1/includes/Plugin.php
r3237207 r3237218 27 27 { 28 28 public const WC_CAMOO_PAY_DB_VERSION = '1.0.1'; 29 30 public const DEFAULT_TITLE = 'CamooPay for e-commerce'; 29 31 30 32 public const WC_CAMOO_PAY_GATEWAY_ID = 'wc_camoo_pay';
Note: See TracChangeset
for help on using the changeset viewer.