44 lines
1.6 KiB
PHP
44 lines
1.6 KiB
PHP
<?php
|
|
/**
|
|
* Plugin Name: Newsletter - SMTP (by ROBOTSTXT)
|
|
* Plugin URI: https://git.robotstxt.es/ROBOTSTXT/robotstxt-smtp-newsletter
|
|
* Description: Integrates ROBOTSTXT SMTP configuration with Newsletter plugin for efficient bulk email delivery with database-backed queue and external workers.
|
|
* Version: 2.2.4
|
|
* Requires at least: 4.7
|
|
* Requires PHP: 7.2
|
|
* Security: robotstxt@robotstxt.es
|
|
* Author: ROBOTSTXT
|
|
* Author URI: https://www.robotstxt.es/
|
|
* Text Domain: robotstxt-smtp-newsletter
|
|
* Domain Path: /languages
|
|
* Requires Plugins: newsletter, robotstxt-smtp
|
|
* License: GPL-3.0-or-later
|
|
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
|
* Gitea Plugin URI: https://git.robotstxt.es/ROBOTSTXT/robotstxt-smtp-newsletter
|
|
* Primary Branch: main
|
|
*
|
|
* @package ROBOTSTXT_SMTP_Newsletter
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
}
|
|
|
|
// Plugin constants.
|
|
define( 'ROBOTSTXT_SMTP_NEWSLETTER_VERSION', '2.2.4' );
|
|
define( 'ROBOTSTXT_SMTP_NEWSLETTER_FILE', __FILE__ );
|
|
define( 'ROBOTSTXT_SMTP_NEWSLETTER_PATH', plugin_dir_path( __FILE__ ) );
|
|
define( 'ROBOTSTXT_SMTP_NEWSLETTER_URL', plugin_dir_url( __FILE__ ) );
|
|
|
|
// Load plugin class.
|
|
require_once ROBOTSTXT_SMTP_NEWSLETTER_PATH . 'includes/class-plugin.php';
|
|
|
|
// Initialize plugin.
|
|
add_action( 'newsletter_loaded', array( 'Robotstxt_SMTP_Newsletter\Plugin', 'instance_init' ) );
|
|
|
|
// Activation hook.
|
|
register_activation_hook( __FILE__, array( 'Robotstxt_SMTP_Newsletter\Plugin', 'activation_hook' ) );
|
|
|
|
// Load updater.
|
|
require_once __DIR__ . '/robotstxt-updater.php';
|
|
Robotstxt_Updater::init( __FILE__ );
|