Your IP : 18.218.63.231


Current Path : /home/ncdcgo/public_html/wp-content/plugins backup/newsletter-automated/
Upload File :
Current File : /home/ncdcgo/public_html/wp-content/plugins backup/newsletter-automated/automated.php

<?php

/*
  Plugin Name: Newsletter - Automated Newsletters
  Plugin URI: http://www.thenewsletterplugin.com/extensions/automated-extension
  Description: Daily, weekly, monthly autogenerated newsletters with blog latest posts
  Version: 4.5.6
  Author: The Newsletter Team
  Requires at least: 4.6
  Requires PHP: 5.6
  Author URI: http://www.thenewsletterplugin.com
  Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
 */

add_action('newsletter_loaded', function ($version) {
    if ($version < '7.4.0') {
        add_action('admin_notices', function () {
            echo '<div class="notice notice-error"><p>Newsletter plugin upgrade required for Automated.</p></div>';
        });
    } else {
        require_once __DIR__ . '/plugin.php';
        new NewsletterAutomated('4.5.6');
    }
});

//register_deactivation_hook(__FILE__, function () {
//    delete_transient('newsletter_automated_run');
//});

register_activation_hook(__FILE__, function () {
    update_option('newsletter_automated_version', '', false);
});

if (!defined('NEWSLETTER_AUTOMATED_TABLE')) {
    global $wpdb;
    define('NEWSLETTER_AUTOMATED_TABLE', $wpdb->prefix . 'newsletter_automated');
}