You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 

87 lines
2.6 KiB

<?php
/**
* The plugin bootstrap file
*
* This file is read by WordPress to generate the plugin information in the plugin
* admin area. This file also includes all of the dependencies used by the plugin,
* registers the activation and deactivation functions, and defines a function
* that starts the plugin.
*
* @link https://horizontes.info
* @since 1.0.0
* @package Reuna_Mailchimp
*
* @wordpress-plugin
* Plugin Name: Instituto Reúna - Integração Mailchimp
* Plugin URI: https://horizontes.info
* Description: Adiciona usuários que fazem download dos produtos às listas associadas no MailChimp
* Version: 1.1.0
* Author: Horizontes Coop.
* Author URI: https://horizontes.info
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: reuna-mailchimp
* Domain Path: /languages
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
/**
* Currently plugin version.
* Start at version 1.0.0 and use SemVer - https://semver.org
* Rename this for your plugin and update it as you release new versions.
*/
define( 'REUNA_MAILCHIMP_VERSION', '1.1.0' );
/**
* Require the Composer autoloader
*/
require __DIR__.'/vendor/autoload.php';
/**
* The code that runs during plugin activation.
* This action is documented in includes/class-reuna-mailchimp-activator.php
*/
function activate_reuna_mailchimp() {
require_once plugin_dir_path( __FILE__ ) . 'includes/class-reuna-mailchimp-activator.php';
Reuna_Mailchimp_Activator::activate();
}
/**
* The code that runs during plugin deactivation.
* This action is documented in includes/class-reuna-mailchimp-deactivator.php
*/
function deactivate_reuna_mailchimp() {
require_once plugin_dir_path( __FILE__ ) . 'includes/class-reuna-mailchimp-deactivator.php';
Reuna_Mailchimp_Deactivator::deactivate();
}
register_activation_hook( __FILE__, 'activate_reuna_mailchimp' );
register_deactivation_hook( __FILE__, 'deactivate_reuna_mailchimp' );
/**
* The core plugin class that is used to define internationalization,
* admin-specific hooks, and public-facing site hooks.
*/
require plugin_dir_path( __FILE__ ) . 'includes/class-reuna-mailchimp.php';
/**
* Begins execution of the plugin.
*
* Since everything within the plugin is registered via hooks,
* then kicking off the plugin from this point in the file does
* not affect the page life cycle.
*
* @since 1.0.0
*/
function run_reuna_mailchimp() {
$plugin = new Reuna_Mailchimp();
$plugin->run();
}
run_reuna_mailchimp();