'test', 'bad' => 'value', 'label' => __( 'Test Extension', 'woocommerce' ), 'description' => __( 'My awesome test settings.', 'woocommerce' ), ); $groups[] = array( 'id' => 'sub-test', 'parent_id' => 'test', 'label' => __( 'Sub test', 'woocommerce' ), 'description' => '', ); $groups[] = array( 'id' => 'coupon-data', 'label' => __( 'Coupon Data', 'woocommerce' ), ); $groups[] = array( 'id' => 'invalid', ); return $groups; } /** * Registers some example settings. * @since 2.7.0 * @param array $settings * @return array */ public static function register_test_settings( $settings ) { $settings[] = array( 'id' => 'catalog_options', 'label' => __( 'Shop & Product Pages', 'woocommerce' ), 'type' => 'title', ); $settings[] = array( 'id' => 'woocommerce_shop_page_display', 'label' => __( 'Shop Page Display', 'woocommerce' ), 'description' => __( 'This controls what is shown on the product archive.', 'woocommerce' ), 'default' => '', 'type' => 'select', 'options' => array( '' => __( 'Show products', 'woocommerce' ), 'subcategories' => __( 'Show categories & subcategories', 'woocommerce' ), 'both' => __( 'Show both', 'woocommerce' ), ), ); $settings[] = array( 'id' => 'woocommerce_enable_lightbox', 'label' => __( 'Product Image Gallery', 'woocommerce' ), 'description' => __( 'Enable Lightbox for product images', 'woocommerce' ), 'default' => 'yes', 'tip' => __( 'Product gallery images will open in a lightbox.', 'woocommerce' ), 'type' => 'checkbox', ); return $settings; } }