| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: WANotifier for Forms and Actions |
| 4 |
* Plugin URI: https://wordpress.org/plugins/notifier/ |
| 5 |
* Description: Send WhatsApp notifications for form submissions from CF7, Gravity Forms, WPForms and more and WordPress actions using WhatsApp Business API |
| 6 |
* Version: 3.1.0 |
| 7 |
* Author: WANotifier |
| 8 |
* Author URI: https://wanotifier.com |
| 9 |
* Text Domain: notifier |
| 10 |
* Requires at least: 6.8 |
| 11 |
* Requires PHP: 7.4 |
| 12 |
*/ |
| 13 |
|
| 14 |
// If this file is called directly, abort. |
| 15 |
if ( ! defined( 'WPINC' ) ) { |
| 16 |
die; |
| 17 |
} |
| 18 |
|
| 19 |
/** |
| 20 |
* Define constants |
| 21 |
*/ |
| 22 |
if ( ! defined( 'NOTIFIER_FILE' ) ) { |
| 23 |
define( 'NOTIFIER_FILE', __FILE__ ); |
| 24 |
} |
| 25 |
|
| 26 |
if ( ! defined( 'NOTIFIER_PATH' ) ) { |
| 27 |
define('NOTIFIER_PATH', plugin_dir_path( __FILE__ )); |
| 28 |
} |
| 29 |
|
| 30 |
/** |
| 31 |
* Load the core plugin file. |
| 32 |
*/ |
| 33 |
require NOTIFIER_PATH . 'includes/class-notifier.php'; |
| 34 |
|
| 35 |
/** |
| 36 |
* Begin execution of the plugin. |
| 37 |
* |
| 38 |
* @since 0.1 |
| 39 |
*/ |
| 40 |
function run_notifier() { |
| 41 |
$plugin = Notifier::get_instance(); |
| 42 |
} |
| 43 |
run_notifier(); |
| 44 |
|