PluginProbe
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant / 2.3.2
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant v2.3.2
2.3.2 2.3.1 2.3.0 2.2.8 2.2.7 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.11.0 1.11.1 1.11.2 1.6 1.7 1.8 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 1.9.10 1.9.11 All 60 releases
← All changes | admin/classes/admin-options/fields/fields-group/status.php +1 -26 2.2.82.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,