Plugin Directory

Changeset 2467953


Ignore:
Timestamp:
02/03/2021 01:22:40 PM (5 years ago)
Author:
freshymichael
Message:

Error Correction - wrap is_plugin_active in admin_init function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stop-jquery-migrate-emails/trunk/stop-jquery-migrate-emails.php

    r2463682 r2467953  
    44* Plugin URI: https://github.com/FreshyMichael/stop-jquery-migrate-emails
    55* Description: Say goodbye to Enable jQuery Migrate Helper weekly status email notifications.
    6 * Version: 1.0.0
     6* Version: 1.0.1
    77* Author: FreshySites
    88* Author URI: https://freshysites.com/
     
    1616/* Stop jQuery Migrate Emails Start */
    1717
     18function stop_jquery_migrate_emails(){
     19
    1820if ( is_plugin_active( 'enable-jquery-migrate-helper/enable-jquery-migrate-helper.php' ) ) {
    1921    //Enable jQuery Migrate Helper plugin is active
     
    2325    wp_unschedule_event($timestamp, 'enable_jquery_migrate_helper_notification');
    2426}, 100);
    25    
     27
    2628}
     29}
     30
     31add_action('admin_init' , 'stop_jquery_migrate_emails');
    2732
    2833/* Stop jQuery Migrate Emails End */
Note: See TracChangeset for help on using the changeset viewer.