Plugin Directory

Changeset 1731867


Ignore:
Timestamp:
09/18/2017 07:44:03 PM (9 years ago)
Author:
lljb3
Message:

Updated to remove Helly Dolly upon activation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bye-felicia/trunk/bye-felicia.php

    r1731843 r1731867  
    7878
    7979    add_action( 'admin_head', 'bye_felicia_css' );
     80
     81    // Delete Hello Dolly.
     82    function bye_felicia_activation_logic() {
     83        if (is_plugin_active('hello.php')) {
     84            deactivate_plugins('hello.php');
     85        }
     86    }
     87    add_action( 'update_option_active_plugins', 'bye_felicia_activation_logic', 10, 2 );
    8088?>
Note: See TracChangeset for help on using the changeset viewer.