| @@ -171,17 +171,15 @@ | ||
| 171 | 171 | } |
| 172 | 172 | |
| 173 | 173 | public static function getEditableOrderStatuses() |
| 174 | 174 | { |
| 175 | - $statuses = apply_filters_deprecated('fluent-cart/editable_order_statuses', [ | |
| 176 | - [ | |
| 177 | - self::ORDER_ON_HOLD => __('On Hold', 'fluent-cart'), | |
| 178 | - self::ORDER_PROCESSING => __('Processing', 'fluent-cart'), | |
| 179 | - self::ORDER_COMPLETED => __('Completed', 'fluent-cart'), | |
| 180 | - // 'archived' => __('Archived', 'fluent-cart'), | |
| 181 | - self::ORDER_CANCELED => __('Canceled', 'fluent-cart') | |
| 182 | - ], [] | |
| 183 | - ], '1.3.16', 'fluent_cart/editable_order_statuses', 'Use fluent_cart/editable_order_statuses instead of fluent-cart/editable_order_statuses. It will be removed in v1.4.3.'); | |
| 175 | + $statuses = [ | |
| 176 | + self::ORDER_ON_HOLD => __('On Hold', 'fluent-cart'), | |
| 177 | + self::ORDER_PROCESSING => __('Processing', 'fluent-cart'), | |
| 178 | + self::ORDER_COMPLETED => __('Completed', 'fluent-cart'), | |
| 179 | + // 'archived' => __('Archived', 'fluent-cart'), | |
| 180 | + self::ORDER_CANCELED => __('Canceled', 'fluent-cart') | |
| 181 | + ]; | |
| 184 | 182 | |
| 185 | 183 | return apply_filters('fluent_cart/editable_order_statuses', $statuses, []); |
| 186 | 184 | } |
| 187 | 185 | |
| @@ -220,17 +218,15 @@ | ||
| 220 | 218 | } |
| 221 | 219 | |
| 222 | 220 | public static function getEditableTransactionStatuses($withLabel = true) |
| 223 | 221 | { |
| 224 | - $statuses = apply_filters_deprecated('fluent-cart/editable_transaction_statuses', [ | |
| 225 | - [ | |
| 226 | - self::TRANSACTION_PENDING => __('Pending', 'fluent-cart'), | |
| 227 | - self::TRANSACTION_SUCCEEDED => __('Succeeded', 'fluent-cart'), | |
| 228 | - self::TRANSACTION_AUTHORIZED => __('Authorized', 'fluent-cart'), | |
| 229 | - self::TRANSACTION_FAILED => __('Failed', 'fluent-cart'), | |
| 230 | - self::TRANSACTION_REFUNDED => __('Refunded', 'fluent-cart'), | |
| 231 | - ], [] | |
| 232 | - ], '1.3.16', 'fluent_cart/editable_transaction_statuses', 'Use fluent_cart/editable_transaction_statuses instead of fluent-cart/editable_transaction_statuses. It will be removed in v1.4.3.'); | |
| 222 | + $statuses = [ | |
| 223 | + self::TRANSACTION_PENDING => __('Pending', 'fluent-cart'), | |
| 224 | + self::TRANSACTION_SUCCEEDED => __('Succeeded', 'fluent-cart'), | |
| 225 | + self::TRANSACTION_AUTHORIZED => __('Authorized', 'fluent-cart'), | |
| 226 | + self::TRANSACTION_FAILED => __('Failed', 'fluent-cart'), | |
| 227 | + self::TRANSACTION_REFUNDED => __('Refunded', 'fluent-cart'), | |
| 228 | + ]; | |
| 233 | 229 | |
| 234 | 230 | $statuses = apply_filters('fluent_cart/editable_transaction_statuses', $statuses, []); |
| 235 | 231 | |
| 236 | 232 | if ($withLabel) { |
| @@ -252,16 +248,14 @@ | ||
| 252 | 248 | } |
| 253 | 249 | |
| 254 | 250 | public static function getEditableShippingStatuses() |
| 255 | 251 | { |
| 256 | - $statuses = apply_filters_deprecated('fluent-cart/editable_order_statuses', [ | |
| 257 | - [ | |
| 258 | - self::SHIPPING_UNSHIPPED => __('Unshipped', 'fluent-cart'), | |
| 259 | - self::SHIPPING_SHIPPED => __('Shipped', 'fluent-cart'), | |
| 260 | - self::SHIPPING_DELIVERED => __('Delivered', 'fluent-cart'), | |
| 261 | - self::SHIPPING_UNSHIPPABLE => __('Unshippable', 'fluent-cart'), | |
| 262 | - ], [] | |
| 263 | - ], '1.3.16', 'fluent_cart/editable_shipping_statuses', 'Use fluent_cart/editable_shipping_statuses instead of fluent-cart/editable_order_statuses. It will be removed in v1.4.3.'); | |
| 252 | + $statuses = [ | |
| 253 | + self::SHIPPING_UNSHIPPED => __('Unshipped', 'fluent-cart'), | |
| 254 | + self::SHIPPING_SHIPPED => __('Shipped', 'fluent-cart'), | |
| 255 | + self::SHIPPING_DELIVERED => __('Delivered', 'fluent-cart'), | |
| 256 | + self::SHIPPING_UNSHIPPABLE => __('Unshippable', 'fluent-cart'), | |
| 257 | + ]; | |
| 264 | 258 | |
| 265 | 259 | return apply_filters('fluent_cart/editable_shipping_statuses', $statuses, []); |
| 266 | 260 | } |
| 267 | 261 | |
| @@ -372,14 +366,12 @@ | ||
| 372 | 366 | } |
| 373 | 367 | |
| 374 | 368 | public static function getEditableCustomerStatuses() |
| 375 | 369 | { |
| 376 | - $statuses = apply_filters_deprecated('fluent-cart/editable_customer_statuses', [ | |
| 377 | - [ | |
| 378 | - self::CUSTOMER_ACTIVE => __('Active', 'fluent-cart'), | |
| 379 | - self::CUSTOMER_INACTIVE => __('Inactive', 'fluent-cart'), | |
| 380 | - ], [] | |
| 381 | - ], '1.3.16', 'fluent_cart/editable_customer_statuses', 'Use fluent_cart/editable_customer_statuses instead of fluent-cart/editable_customer_statuses. It will be removed in v1.4.3.'); | |
| 370 | + $statuses = [ | |
| 371 | + self::CUSTOMER_ACTIVE => __('Active', 'fluent-cart'), | |
| 372 | + self::CUSTOMER_INACTIVE => __('Inactive', 'fluent-cart'), | |
| 373 | + ]; | |
| 382 | 374 | |
| 383 | 375 | return apply_filters('fluent_cart/editable_customer_statuses', $statuses, []); |
| 384 | 376 | } |
| 385 | 377 | |