'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__( 'Do not modify these settings unless you\'re an experienced developer', 'merchant' ), ), array( 'type' => 'divider', ), array( 'id' => 'custom_css', 'type' => 'textarea', 'title' => esc_html__( 'Custom CSS', 'merchant' ), ), array( 'id' => 'custom_js_first', 'type' => 'textarea', 'title' => esc_html__( 'Custom JS First - runs at the beginning of Merchant', 'merchant' ), ), array( 'id' => 'custom_js_last', 'type' => 'textarea', 'title' => esc_html__( 'Custom JS Last - runs at the end of Merchant', 'merchant' ), ), array( 'id' => 'custom_js', 'type' => 'textarea', 'title' => esc_html__( 'Custom JS', 'merchant' ), ), ), ) ); /** * Hook: 'merchant_admin_settings_after_options' * * @since 1.0 */ do_action( 'merchant_admin_settings_after_options' ); ?>