← All changes
|
admin/classes/admin-options/fields/fields-group/status.php
+1
-26
2.2.7
→
2.3.2
View file →
| @@ -17,34 +17,9 @@ | ||
| 17 | 17 | if ( ! defined( 'ABSPATH' ) ) { |
| 18 | 18 | exit; |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | -/** | |
| 22 | - * Filter the status field configuration. | |
| 23 | - * | |
| 24 | - * @since 1.9.12 | |
| 25 | - * | |
| 26 | - * @param array $status_field Status field configuration. | |
| 27 | - * @param array $settings Parent group settings. | |
| 28 | - * @param mixed $value Group value. | |
| 29 | - * @param string $module_id Module ID. | |
| 30 | - */ | |
| 31 | -$status_field = apply_filters( | |
| 32 | - 'merchant_group_status_field', | |
| 33 | - array( | |
| 34 | - 'id' => $settings['id'] . '_status', | |
| 35 | - 'type' => 'select', | |
| 36 | - 'title' => esc_html__( 'Status', 'merchant' ), | |
| 37 | - 'options' => array( | |
| 38 | - 'inactive' => esc_html__( 'Inactive', 'merchant' ), | |
| 39 | - 'active' => esc_html__( 'Active', 'merchant' ), | |
| 40 | - ), | |
| 41 | - 'default' => isset( $settings['default'] ) ? $settings['default'] : 'active', | |
| 42 | - ), | |
| 43 | - $settings, | |
| 44 | - $value, | |
| 45 | - $module_id | |
| 46 | -); | |
| 21 | +$status_field = Merchant_Field_Fields_Group::get_status_field_definition( $settings, $value, $module_id ); | |
| 47 | 22 | |
| 48 | 23 | if ( $inside_flexible ) { |
| 49 | 24 | Merchant_Field_Fields_Group::render_sub_field( |
| 50 | 25 | $status_field, |