| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Plugin Name: WP Mail Log |
| 5 |
* Description: WP Mail Log helps you to Log and view all emails from WordPress. |
| 6 |
* Plugin URI: https://wpvibes.com/ |
| 7 |
* Author: WPVibes |
| 8 |
* Version: 1.1.6 |
| 9 |
* Author URI: https://wpvibes.com/ |
| 10 |
* License: GNU General Public License v2 or later |
| 11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html |
| 12 |
* Text Domain: wpv-wml |
| 13 |
*/ |
| 14 |
|
| 15 |
if ( ! defined( 'ABSPATH' ) ) { |
| 16 |
exit; // Exit if accessed directly |
| 17 |
} |
| 18 |
|
| 19 |
|
| 20 |
define( 'WML_URL', plugins_url( '/', __FILE__ ) ); |
| 21 |
define( 'WML_PATH', plugin_dir_path( __FILE__ ) ); |
| 22 |
define( 'WML_BASE', plugin_basename( __FILE__ ) ); |
| 23 |
define( 'WML_FILE', __FILE__ ); |
| 24 |
define( 'WML_VERSION', '1.1.6' ); |
| 25 |
|
| 26 |
if ( file_exists( WML_PATH . 'vendor-prefixed/autoload.php' ) ) { |
| 27 |
require WML_PATH . 'vendor-prefixed/autoload.php'; |
| 28 |
} |
| 29 |
|
| 30 |
add_action( 'plugins_loaded', function () { |
| 31 |
if ( ! class_exists( \WPVibes\WPMailLog\Vendor\WPVibes\ReviewReminder\ReviewReminder::class ) ) { |
| 32 |
return; |
| 33 |
} |
| 34 |
\WPVibes\WPMailLog\Vendor\WPVibes\ReviewReminder\ReviewReminder::register( |
| 35 |
[ |
| 36 |
'plugin_slug' => 'wp-mail-log', |
| 37 |
'plugin_name' => 'WP Mail Log', |
| 38 |
'plugin_file' => WML_FILE, |
| 39 |
'text_domain' => 'wpv-wml', |
| 40 |
'triggers' => [ |
| 41 |
'time' => 5 * DAY_IN_SECONDS, |
| 42 |
'usage' => [ |
| 43 |
'option_key' => 'emails_logged', |
| 44 |
'threshold' => 10, |
| 45 |
], |
| 46 |
], |
| 47 |
'trigger_logic' => 'OR', |
| 48 |
'screens' => [ 'toplevel_page_wp-mail-log' ], |
| 49 |
'capability' => 'manage_options', |
| 50 |
'icon_url' => WML_URL . 'assets/images/wp-mail-log-logo.svg', |
| 51 |
'message_heading' => 'Enjoying WP Mail Log?', |
| 52 |
'message_body' => "Glad it's helping you keep an eye on your emails! If it's been useful, a quick review on WordPress.org would mean a lot to our team and helps other folks discover the plugin.", |
| 53 |
] |
| 54 |
); |
| 55 |
} ); |
| 56 |
|
| 57 |
require WML_PATH . 'includes/bootstrap.php'; |
| 58 |
|