Skip to content
Snippets Groups Projects
uninstall.php 806 B
Newer Older
  • Learn to ignore specific revisions
  • Kevin Cristiano's avatar
    Kevin Cristiano committed
    <?php
    
    /*
     +--------------------------------------------------------------------+
    
    Kevin Cristiano's avatar
    Kevin Cristiano committed
     | Copyright CiviCRM LLC. All rights reserved.                        |
    
    Kevin Cristiano's avatar
    Kevin Cristiano committed
     |                                                                    |
    
    Kevin Cristiano's avatar
    Kevin Cristiano committed
     | This work is published under the GNU AGPLv3 license with some      |
     | permitted exceptions and without any warranty. For full license    |
     | and copyright information, see https://civicrm.org/licensing       |
    
    Kevin Cristiano's avatar
    Kevin Cristiano committed
     +--------------------------------------------------------------------+
    */
    
    /**
     *
     * @package CRM
    
    Kevin Cristiano's avatar
    Kevin Cristiano committed
     * @copyright CiviCRM LLC https://civicrm.org/licensing
    
    Kevin Cristiano's avatar
    Kevin Cristiano committed
    // Kick out if uninstall not called from WordPress
    
    Kevin Cristiano's avatar
    Kevin Cristiano committed
    if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) { exit(); }
    
    
    
    Kevin Cristiano's avatar
    Kevin Cristiano committed
    // Delete options that this plugin has set
    
    Kevin Cristiano's avatar
    Kevin Cristiano committed
    delete_option( 'civicrm_activation_in_progress' );