'global-settings', 'title' => esc_html__( 'Merchant Analytics', 'merchant' ), 'fields' => array( // Analytics toggle array( 'id' => 'analytics_toggle', 'type' => 'switcher', 'title' => __( 'Enable analytics', 'merchant' ), 'desc' => __( 'Track revenue and performance insights from our modules. No personal data is collected. Disable this if you prefer not to track analytics.', 'merchant' ), 'default' => true, ), array( 'id' => 'usage_statistics_tracking', 'type' => 'switcher', 'title' => __( 'Enable modules usage tracking', 'merchant' ), 'desc' => __( 'Track which modules are used on your site. This helps us improve our products and services. No personal data is collected.', 'merchant' ), 'default' => false, ), ), ) ); Merchant_Admin_Options::create( array( 'module' => 'global-settings', 'title' => esc_html__( 'Merchant Operating Mode', 'merchant' ), 'fields' => array( array( 'id' => 'operating_mode', 'type' => 'radio_alt', 'options' => array( 'active' => array( 'title' => esc_html__( 'Active', 'merchant' ), 'desc' => esc_html__( 'Merchant is active and visible for all customers. This is the standard operating mode.', 'merchant' ), ), 'preview' => array( 'title' => esc_html__( 'Preview', 'merchant' ), 'desc' => esc_html__( 'All Merchant modules are active and visible only to admins. Use this mode to test Merchant modules before going live.', 'merchant' ), ), 'inactive' => array( 'title' => esc_html__( 'Inactive', 'merchant' ), 'desc' => esc_html__( 'Merchant is inactive for everyone, including you. While in this mode, your store operates like Merchant is not installed.', 'merchant' ), ), ), 'default' => 'active', ), ), ) ); Merchant_Admin_Options::create( array( 'module' => 'global-settings', 'title' => esc_html__( 'Global Customizations', 'merchant' ), 'fields' => array( array( 'type' => 'warning', 'content' => esc_html__( 'These settings allow you to add custom code, and are recommended for developers or advanced users only', 'merchant' ), ), array( 'type' => 'divider', ), array( 'id' => 'custom_css', 'type' => 'textarea_code', 'title' => esc_html__( 'Custom CSS', 'merchant' ), ), array( 'id' => 'custom_js', 'type' => 'textarea_code', 'title' => esc_html__( 'Custom JS', 'merchant' ), ), ), ) ); /** * Hook: 'merchant_admin_settings_after_options' * * @since 1.0 */ do_action( 'merchant_admin_settings_after_options' ); ?>