Plugin Directory

Changeset 2280341


Ignore:
Timestamp:
04/09/2020 03:35:18 PM (6 years ago)
Author:
akshitsethi
Message:

Update to version v1.5.0 from GitHub

Location:
maintenance-mode-coming-soon/trunk
Files:
499 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • maintenance-mode-coming-soon/trunk/maintenance-mode-coming-soon.php

    r1838977 r2280341  
    11<?php
     2/**
     3 * Plugin Name: Maintenance Mode & Coming Soon
     4 * Description: Create a simple yet elegant Coming Soon, Launch Page, Under Construction, or Maintenance Mode page for your website.
     5 * Version: 1.5.0
     6 * Runtime: 5.6+
     7 * Author: akshitsethi
     8 * Text Domain: maintenance-mode-coming-soon
     9 * Domain Path: i18n
     10 * Author URI: https://akshitsethi.com
     11 * License: GPLv3
     12 * License URI: http://www.gnu.org/licenses/gpl-3.0.txt
     13 */
     14
     15namespace AkshitSethi\Plugins\MaintenanceMode;
     16
     17// Stop execution if the file is called directly
     18defined( 'ABSPATH' ) || exit;
     19
     20// Composer autoloder file.
     21require_once __DIR__ . '/vendor/autoload.php';
    222
    323/**
     24 * Plugin class where all the action happens.
    425 *
    5  * @link       http://www.akshitsethi.com
    6  * @since      0.1
    7  * @author     @akshitsethi
    8  *
    9  *
    10  * Plugin Name:         Maintenance Mode & Coming Soon
    11  * Plugin URI:          http://www.akshitsethi.com/wordpress-plugin/maintenance-mode.php
    12  * Description:         The Maintenance Mode & Coming Soon plugin allows you to quickly and easily set up a Maintenance Page or Coming Soon / Launch Page for your website.
    13  * Version:             1.2.1
    14  * Author:              akshitsethi
    15  * Author URI:          http://www.akshitsethi.com
    16  * License:             GPLv3
    17  * License URI:         http://www.gnu.org/licenses/gpl-3.0.txt
    18  * Text Domain:         maintenance-mode-coming-soon
    19  * Domain Path:         /framework/langs/
    20  *
    21  *
    22  * Maintenance Mode & Coming Soon Plugin
    23  * Copyright (C) 2018, akshitsethi - [email protected]
    24  *
    25  * This program is free software: you can redistribute it and/or modify
    26  * it under the terms of the GNU General Public License as published by
    27  * the Free Software Foundation, either version 3 of the License, or
    28  * (at your option) any later version.
    29  *
    30  * This program is distributed in the hope that it will be useful,
    31  * but without any warranty; without even the implied warranty of
    32  * merchantibility or fitness for a particular purpose. See the
    33  * GNU General Public License for more details.
    34  *
    35  * You should have received a copy of the GNU General Public License
    36  * along with this program. If not, see <http://www.gnu.org/licenses/>
    37  *
    38  * Defining constants and activation hook.
    39  * If this file is called directly, abort.
    40  *
    41  * -------------------------------------------------
     26 * @category    Plugins
     27 * @package     AkshitSethi\Plugins\MaintenanceMode
     28 * @since       1.0.0
    4229 */
     30class MaintenanceMode {
    4331
    44 if ( ! defined( 'WPINC' ) ) {
    45     die;
    46 }
     32    /**
     33     * Class Constructor.
     34     */
     35    public function __construct() {
     36        add_action( 'plugins_loaded', array( $this, 'init' ) );
     37        add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );
     38    }
    4739
    4840
    49 // Constants
    50 // -------------------------------------------------
    51 
    52 define( 'AS_MMCS_URL', plugins_url( '', __FILE__ ) );
    53 define( 'AS_MMCS_PATH', plugin_dir_path( __FILE__ ) );
    54 define( 'AS_MMCS_VERSION', '1.2.1' );
     41    /**
     42     * Initialize plugin when all the plugins have been loaded.
     43     *
     44     * @since 2.0.0
     45     */
     46    public function init() {
     47        // Initialize front and admin
     48        new Front();
     49        new Admin();
     50    }
    5551
    5652
    57 // Activation
    58 // -------------------------------------------------
     53    /**
     54     * Loads textdomain for the plugin.
     55     *
     56     * @since 2.0.0
     57     */
     58    public function load_textdomain() {
     59        load_plugin_textdomain( Config::PLUGIN_SLUG, false, Config::$plugin_path . 'i18n/' );
     60    }
    5961
    60 function mmcs_plugin_activation() {
    61 
    62     // Check for exisiting options in the database
    63     $options['basic']       = get_option( 'mmcs_options_basic' );
    64     $options['email']       = get_option( 'mmcs_options_email' );
    65     $options['design']      = get_option( 'mmcs_options_design' );
    66     $options['form']        = get_option( 'mmcs_options_form' );
    67     $options['social']      = get_option( 'mmcs_options_social' );
    68     $options['advanced']    = get_option( 'mmcs_options_advanced' );
    69 
    70     // Basic
    71     // -------------------------------------------------
    72     // Default options for the plugin on activation
    73 
    74     $default_options['basic']   = array(
    75         'status'                => '2',
    76         'title'                 => esc_html__( 'Maintenance Mode', 'maintenance-mode-coming-soon' ),
    77         'header_text'           => esc_html__( 'Maintenance Mode', 'maintenance-mode-coming-soon' ),
    78         'secondary_text'        => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla pharetra eu felis quis lobortis. Proin vitae rutrum nisl, ut ullamcorper quam. Praesent faucibus ligula ac nisl varius dictum. Maecenas iaculis posuere orci, sed consectetur augue.', 'maintenance-mode-coming-soon' ),
    79         'antispam_text'         => esc_html__( 'And yes, we hate spam too!', 'maintenance-mode-coming-soon' ),
    80         'custom_login_url'      => '',
    81         'show_logged_in'        => '2',
    82         'exclude_se'            => '1',
    83         'arrange'               => 'logo,header,secondary,form,social,html',
    84         'analytics'             => '',
    85         'branding'              => '1'
    86     );
    87 
    88     // Email
    89     // -------------------------------------------------
    90 
    91     $default_options['email']   = array(
    92         'mailchimp_api'         => '',
    93         'mailchimp_list'        => '',
    94         'message_noemail'       => esc_html__( 'Please provide a valid email address.', 'maintenance-mode-coming-soon' ),
    95         'message_subscribed'    => esc_html__( 'You are already subscribed!', 'maintenance-mode-coming-soon' ),
    96         'message_wrong'         => esc_html__( 'Oops! Something went wrong.', 'maintenance-mode-coming-soon' ),
    97         'message_done'          => esc_html__( 'Thank you! We\'ll be in touch!', 'maintenance-mode-coming-soon' )
    98     );
    99 
    100     // Design
    101     // -------------------------------------------------
    102 
    103     $default_options['design']  = array(
    104         'logo'                      => '',
    105         'favicon'                   => '',
    106         'bg_cover'                  => '',
    107         'content_overlay'           => '2',
    108         'logo_height'               => '',
    109         'content_overlay_style'     => 'bb',
    110         'content_overlay_opacity'   => '25',
    111         'content_margin'            => '80',
    112         'content_padding'           => '30',
    113         'content_width'             => '440',
    114         'content_border_size'       => '1',
    115         'content_border_color'      => '101010',
    116         'bg_color'                  => 'ffffff',
    117         'content_color'             => 'ffffff',
    118         'content_position'          => 'center',
    119         'content_alignment'         => 'left',
    120         'header_font'               => 'Poppins',
    121         'secondary_font'            => 'Rubik',
    122         'header_font_size'          => '28',
    123         'secondary_font_size'       => '15',
    124         'header_font_lh'            => '42',
    125         'secondary_font_lh'         => '23',
    126         'header_font_style'         => 'bold',
    127         'secondary_font_style'      => 'normal',
    128         'header_font_color'         => '0e0f04',
    129         'secondary_font_color'      => '0e0f04',
    130         'antispam_font_size'        => '13',
    131         'antispam_font_lh'          => '24',
    132         'antispam_font_color'       => 'bbbbbb'
    133     );
    134 
    135     // Form
    136     // -------------------------------------------------
    137 
    138     $default_options['form']    = array(
    139         'input_text'            => esc_html__( 'Enter your email address..', 'maintenance-mode-coming-soon' ),
    140         'button_text'           => esc_html__( 'Subscribe', 'maintenance-mode-coming-soon' ),
    141         'ignore_form_styles'    => '2',
    142         'ajax_submit'           => '1',
    143         'input_font'            => 'Poppins',
    144         'button_font'           => 'Poppins',
    145         'input_font_size'       => '13',
    146         'button_font_size'      => '12',
    147         'input_font_lh'         => '22',
    148         'button_font_lh'        => '20',
    149         'input_font_color'      => '0e0f04',
    150         'button_font_color'     => 'ffffff',
    151         'input_bg'              => '',
    152         'button_bg'             => '0f0f0f',
    153         'input_bg_hover'        => '',
    154         'button_bg_hover'       => '0a0a0a',
    155         'input_border'          => 'eeeeee',
    156         'button_border'         => '0f0f0f',
    157         'input_border_hover'    => 'bbbbbb',
    158         'button_border_hover'   => '0a0a0a',
    159         'success_background'    => '90c695',
    160         'success_color'         => 'ffffff',
    161         'error_background'      => 'e08283',
    162         'error_color'           => 'ffffff'
    163     );
    164 
    165     // Social
    166     // -------------------------------------------------
    167 
    168     $default_options['social']  = array(
    169         'arrange'               => '',
    170         'link_color'            => '101010',
    171         'link_hover'            => '101010',
    172         'icon_size'             => '16',
    173         'link_target'           => '_blank',
    174         '500px'                 => '',
    175         'amazon'                => '',
    176         'android'               => '',
    177         'angellist'             => '',
    178         'apple'                 => '',
    179         'behance'               => '',
    180         'bitbucket'             => '',
    181         'bitcoin'               => '',
    182         'buysellads'            => '',
    183         'delicious'             => '',
    184         'deviantart'            => '',
    185         'digg'                  => '',
    186         'dribbble'              => '',
    187         'dropbox'               => '',
    188         'etsy'                  => '',
    189         'facebook'              => '',
    190         'flickr'                => '',
    191         'foursquare'            => '',
    192         'github-alt'            => '',
    193         'google'                => '',
    194         'google-plus'           => '',
    195         'imdb'                  => '',
    196         'instagram'             => '',
    197         'lastfm'                => '',
    198         'linkedin'              => '',
    199         'medium'                => '',
    200         'meetup'                => '',
    201         'mixcloud'              => '',
    202         'paypal'                => '',
    203         'pinterest'             => '',
    204         'product-hunt'          => '',
    205         'quora'                 => '',
    206         'reddit'                => '',
    207         'scribd'                => '',
    208         'skype'                 => '',
    209         'slack'                 => '',
    210         'slideshare'            => '',
    211         'snapchat'              => '',
    212         'soundcloud'            => '',
    213         'spotify'               => '',
    214         'stack-overflow'        => '',
    215         'stumbleupon'           => '',
    216         'telegram'              => '',
    217         'trello'                => '',
    218         'tripadvisor'           => '',
    219         'tumblr'                => '',
    220         'twitch'                => '',
    221         'twitter'               => '',
    222         'vimeo'                 => '',
    223         'vine'                  => '',
    224         'vk'                    => '',
    225         'wechat'                => '',
    226         'weibo'                 => '',
    227         'whatsapp'              => '',
    228         'wikipedia-w'           => '',
    229         'wordpress'             => '',
    230         'xing'                  => '',
    231         'yahoo'                 => '',
    232         'youtube-play'          => ''
    233     );
    234 
    235     // Advanced
    236     // -------------------------------------------------
    237 
    238     $default_options['advanced'] = array(
    239         'disable_settings'      => '2',
    240         'custom_html'           => '',
    241         'custom_css'            => ''
    242     );
    24362
    24463    /**
    245      * Check for options in the database.
    246      * Not found? Update the default options to the database.
    247      *
    248      * If present in the database, merge with the default ones.
    249      * -------------------------------------------------
    250      * Basic
    251      * -------------------------------------------------
     64     * Attached to the activation hook.
    25265     */
     66    public function activate() {
     67        // Check for existing options in the database
     68        $options = get_option( Config::DB_OPTION );
    25369
    254     if ( ! $options['basic'] ) {
    255         update_option( 'mmcs_options_basic', $default_options['basic'] );
    256     } else {
    257         $default_options['basic']       = array_merge( $default_options['basic'], $options['basic'] );
    258         update_option( 'mmcs_options_basic', $default_options['basic'] );
     70        // Present? Overwrite the default options
     71        if ( $options ) {
     72            $options = array_merge( Config::$default_options, $options );
     73        } else {
     74            $options = Config::$default_options;
     75        }
     76
     77        // Update `wp_options` table
     78        update_option( Config::DB_OPTION, $options );
    25979    }
    26080
    261     // Email
    262     // -------------------------------------------------
    26381
    264     if ( ! $options['email'] ) {
    265         update_option( 'mmcs_options_email', $default_options['email'] );
    266     } else {
    267         $default_options['email']       = array_merge( $default_options['email'], $options['email'] );
    268         update_option( 'mmcs_options_email', $default_options['email'] );
    269     }
    270 
    271     // Design
    272     // -------------------------------------------------
    273 
    274     if ( ! $options['design'] ) {
    275         update_option( 'mmcs_options_design', $default_options['design'] );
    276     } else {
    277         $default_options['design']  = array_merge( $default_options['design'], $options['design'] );
    278         update_option( 'mmcs_options_design', $default_options['design'] );
    279     }
    280 
    281     // Form
    282     // -------------------------------------------------
    283 
    284     if ( ! $options['form'] ) {
    285         update_option( 'mmcs_options_form', $default_options['form'] );
    286     } else {
    287         $default_options['form']        = array_merge( $default_options['form'], $options['form'] );
    288         update_option( 'mmcs_options_form', $default_options['form'] );
    289     }
    290 
    291     // Social
    292     // -------------------------------------------------
    293 
    294     if ( ! $options['social'] ) {
    295         update_option( 'mmcs_options_social', $default_options['social'] );
    296     } else {
    297         $default_options['social']      = array_merge( $default_options['social'], $options['social'] );
    298         update_option( 'mmcs_options_social', $default_options['social'] );
    299     }
    300 
    301     // Advanced
    302     // -------------------------------------------------
    303 
    304     if ( ! $options['advanced'] ) {
    305         update_option( 'mmcs_options_advanced', $default_options['advanced'] );
    306     } else {
    307         $default_options['advanced']    = array_merge( $default_options['advanced'], $options['advanced'] );
    308         update_option( 'mmcs_options_advanced', $default_options['advanced'] );
     82    /**
     83     * Attached to the de-activation hook.
     84     */
     85    public function deactivate() {
     86        /**
     87         * @todo Decide whether to delete the transient on deactivation or not.
     88         */
    30989    }
    31090
    31191}
    312 register_activation_hook( __FILE__, 'mmcs_plugin_activation' );
    31392
    314 
    315 // De-activation
    316 // -------------------------------------------------
    317 
    318 function mmcs_plugin_deactivation() {
    319 
    320     // Silence is golden
    321     // We might use this in future versions
    322 
    323 }
    324 register_deactivation_hook( __FILE__, 'mmcs_plugin_deactivation' );
    325 
     93// Initialize plugin
     94$maintenance_mode = new MaintenanceMode();
    32695
    32796/**
    328  * Including files necessary for the management panel of the plugin.
    329  * Basically, support panel and option to insert custom CSS is provided.
    330  * -------------------------------------------------
     97 * Hooks for plugin activation & deactivation.
    33198 */
    332 
    333 if ( is_admin() ) {
    334     require_once AS_MMCS_PATH . 'framework/admin/init.php';
    335 }
    336 
    337 
    338 /**
    339  * Let's start the plugin now.
    340  * All the widgets are included and registered using the right hook.
    341  * -------------------------------------------------
    342  */
    343 
    344 require_once AS_MMCS_PATH . 'framework/public/init.php';
     99register_activation_hook( __FILE__, array( $maintenance_mode, 'activate' ) );
     100register_deactivation_hook( __FILE__, array( $maintenance_mode, 'deactivate' ) );
  • maintenance-mode-coming-soon/trunk/readme.txt

    r1838977 r2280341  
    11=== Maintenance Mode & Coming Soon ===
    22Contributors: akshitsethi
    3 Donate link: http://www.akshitsethi.com/
    4 Tags: maintenance mode, coming soon, landing page, launch page, under construction, maintenance mode page, coming soon page, wp maintenance, wordpress coming soon, wordpress maintenance mode, wordpress under construction, wp maintenance mode, wp coming soon, wp launch page, wp under contruction, free wordpress maintenance mode plugin, free coming soon plugin, free launch page plugin, maintenance mode with mailchimp
    5 Requires at least: 4.0
    6 Tested up to: 4.9.4
    7 Stable tag: 1.2.1
     3Donate link: https://akshitsethi.com/
     4Tags: coming soon, coming soon page, construction, landing page, launch, launch page, maintenance, maintenance mode, newsletter, offline, unavailable, under construction, wordpress coming soon, wordpress maintenance mode, wordpress under construction
     5Requires at least: 3.5.1
     6Tested up to: 5.4
     7Requires PHP: 5.6
     8Stable tag: 1.5.0
    89License: GPLv3
    910License URI: http://www.gnu.org/licenses/gpl-3.0.html
    1011
    11 Maintenance Mode + Coming Soon + Landing Page plugin for WordPress with support for MailChimp to collect emails. It is so powerful that it can be used for different needs. Plus, it is absolutely 100% free without any paid version and it will remain free forever.
     12Create a simple yet elegant Coming Soon, Launch Page, Under Construction, or Maintenance Mode page for your website.
    1213
    1314
    1415== Description ==
    15 The **Maintenance Mode & Coming Soon** plugin allows you to quickly and easily set up a Maintenance Mode or Coming Soon or Launch Page for your website. It's simple + flexible and works with any WordPress theme you have installed on your website. It let's you have full control over the frontend of the maintenance page. You can configure every element of the plugin as per your preference. Not to forget, you can also setup MailChimp email form to collect email addresses from visitors and also link to your social media profiles.
     16The Maintenance Mode & Coming Soon plugin allows you to quickly & easily set up a Coming Soon, Launch Page, Under Construction, or Maintenance Mode page for your website. It's Simple yet flexible and works with any WordPress theme out there. Also, lets you have full control over the frontend of the website and every element can be customized with just a few clicks.
    1617
    1718
     
    1920
    2021* Works with any WordPress Theme.
    21 * Completely customizable look and feel including Background Color, Cover Image, Fonts etc.
     22* Completely customize the look and feel of your **Coming Soon / Maintenance Mode** page.
    2223* Each and every element of the maintenance page can be configured.
    23 * Option to preview the maintenance page for changes made before activating it. You can also preview every change almost instantly without leaving the options panel of the plugin.
    24 * Arrange position of the page elements as per preference.
    2524* W3 Total Cache and WP Super Cache Support.
    2625* Easily add Custom CSS and HTML.
    27 * Collect Emails with MailChimp. You can also select between traditional form or advanced AJAX form to collect emails from visitors.
    28 * You can let search engines to view website normally while visitors see the "Maintenance Page" or "Coming Soon Page".
    29 * Visible to only non-logged in users so you can build your site while visitors see the maintenance page. Configurable via the options panel.
     26* Collect Emails with MailChimp.
     27* You can let search engines to view website normally while visitors see the "Coming Soon" page.
     28* Visible to only non logged in users so you can build your site while visitors see the "Coming Soon" page. Configurable via options panel.
    3029* Supports Custom Login URL.
    31 * Track visitors with support for Google Analytics.
    32 * Integrated with Google Fonts. Use any Google Font for different sections of the maintenance mode.
    33 * Showcase your Social Links using Icons with drag-n-drop support to arrange the order.
     30* Integrated with Google Fonts.
    3431* Stretch Background Image to Cover the Entire Browser.
    3532* Uses HTML5 & CSS3.
    3633* Translation Ready, i18n Support.
    37 * Powerful Options Panel (100+ options to configure).
    38 * Get support within the options panel. It's something you going to love.
    39 
    40 **Coming Soon**
    41 
    42 I pledge to keep improving this plugin with continous bug fixes, new features, and fill it with more awesomeness. For the next update of the plugin, I have already started working on the following features.
    43 
    44 * Ready to use templates.
    45 * More email providers for the subscription form. Currently, it's MailChimp only.
    46 * Ability to capture the first and last name.
    47 * Enhanced preview mode with the ability to test the subscription form as well.
    48 * Plugin analytics.
    49 * Countdown timer for the launch page.
    50 * Slideshow & Video backgrounds.
    51 
    52 **About**
    53 
    54 I'm **Akshit Sethi**, Designer + Developer by profession & Entrepreneur by passion. In love with WWW and Spanish. I create premium WordPress themes & plugins. Building some crazy stuff these days.
    55 
    56 [Website](http://www.akshitsethi.com) | [WordPress Themes](http://www.akshitsethi.com/themes.php) | [WordPress Plugins](http://www.akshitsethi.com/plugins.php)
    57 
     34* Powerful Options Panel.
     35* Get support within the options panel itself. It's something you going to love.
     36* **FREE Forever**
    5837
    5938== Installation ==
     
    63421. Upload `maintenance-mode-coming-soon` folder to the `/wp-content/plugins/` directory.
    64432. Activate the plugin through the 'Plugins' menu in WordPress.
    65 3. Go to the 'Maintenance Mode' under 'Admin' panel.
     443. Go to 'Maintenance Mode & Coming Soon' options under the 'Settings' menu.
    66454. Configure the plugin and start enjoying it.
    6746
     
    7150= Having issues with the plugin? =
    7251
    73 Getting help is just a click away now. Report your issues using the support form in the plugin options panel and I will get back to you at your admin email address. If the support form is not working for you, kindly send me an email at **hi@akshitsethi.com** explaining the issue you are facing with the plugin.
     52Getting help is just a click away now. Report your issues using the support form in the plugin options panel and I will get back to you at the earliest possible. If the support form is not working for you, kindly send me an email at **akshitsethi@gmail.com** explaining the issue you are facing with the plugin.
    7453
    7554
    7655== Screenshots ==
    7756
    78 1. Maintenance Mode
    79 2. Launch Page
     571. Simple maintenance page
     582. Coming soon page
     593. See how perfectly it adapts to mobile
     604. Mobile optimized admin panel of the plugin
     615. Submit support ticket from the options panel itself
    8062
    8163
    8264== Changelog ==
    8365
    84 = 1.2.1 =
    85 * Bug fixes and performance improvements
     66= 1.5.0 =
     67* Code has been completely refactored
     68* Lots of bugs fixing has been done
     69* Missing CSRF protection has been added
    8670
    87 = 1.1.0 =
    88 * Bug fixes and performance improvements
    89 * Plugin registration has been added with many benefits attached
    90 * Design issues have been fixed
     71= 1.0.1 =
     72* Fixed issue with uninstalling plugin
     73* Correction with author meta links
    9174
    9275= 1.0 =
    93 * Exciting new features added
    94 * Option to add social icons is now available
    95 * Bug fixes and security patches
    96 * JavaScript libraries updated
    97 * Now compatible with WordPress 4.9.2
    98 
    99 = 0.1 =
    100 * Initial release
    101 
    102 
    103 == Upgrade Notice ==
    104 
    105 Bug fixes and performance improvements in this version of the plugin.
     76First release of the plugin.
  • maintenance-mode-coming-soon/trunk/uninstall.php

    r1838977 r2280341  
    11<?php
    2 
    32/**
    4  * File which gets called on plugin uninstall.
    5  * Since the plugin does not do any sort of setup, nothing is done over here.
     3 * File which gets called on plugin uninstall. Since the plugin does not do any
     4 * sort of setup, nothing is done over here.
    65 *
    7  * @since     0.1
    8  * @author    @akshitsethi
    9  *
    10  * Checking whether the file is called by the Wordpress uninstall action or not
    11  * If not, then exit and prevent unauthorized access
    12  * -------------------------------------------------
     6 * @since   1.0.0
     7 * @package AkshitSethi/Plugins/MaintenanceMode
    138 */
    149
     10namespace AkshitSethi\Plugins\MaintenanceMode;
     11
     12// Prevent unauthorized access
    1513if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
    16     exit();
     14    exit;
    1715}
    1816
     17// Composer autoloder file.
     18require_once __DIR__ . '/vendor/autoload.php';
    1919
    20 // Remove Options
    21 // -------------------------------------------------
    22 
    23 delete_option( 'mmcs_options_basic' );      // basic
    24 delete_option( 'mmcs_options_email' );      // email
    25 delete_option( 'mmcs_options_design' );     // design
    26 delete_option( 'mmcs_options_form' );       // form
    27 delete_option( 'mmcs_options_social' );     // social
    28 delete_option( 'mmcs_options_advanced' );   // advanced
    29 delete_option( 'as_reg_mmcs' );             // registration
    30 
    31 
    32 // Remove Transient
    33 // -------------------------------------------------
    34 
    35 delete_transient( 'mmcs_email_list' );
     20// Remove options and transients
     21delete_option( Config::DB_OPTION );
     22delete_transient( Config::PREFIX . 'email_lists' );
Note: See TracChangeset for help on using the changeset viewer.