55 lines
1.3 KiB
PHP
55 lines
1.3 KiB
PHP
<?php
|
|
/**
|
|
* Plugin Name: Twilio WP Plugin
|
|
* Plugin URI: https://example.com/twilio-wp-plugin
|
|
* Description: WordPress plugin for Twilio integration with phone scheduling, call forwarding, queue management, and Eleven Labs TTS
|
|
* Version: 1.0.0
|
|
* Author: Your Name
|
|
* License: GPL v2 or later
|
|
* Text Domain: twilio-wp-plugin
|
|
*/
|
|
|
|
// If this file is called directly, abort.
|
|
if (!defined('WPINC')) {
|
|
die;
|
|
}
|
|
|
|
// Plugin constants
|
|
define('TWP_VERSION', '1.0.0');
|
|
define('TWP_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
|
define('TWP_PLUGIN_URL', plugin_dir_url(__FILE__));
|
|
define('TWP_PLUGIN_BASENAME', plugin_basename(__FILE__));
|
|
|
|
/**
|
|
* Plugin activation hook
|
|
*/
|
|
function twp_activate() {
|
|
require_once TWP_PLUGIN_DIR . 'includes/class-twp-activator.php';
|
|
TWP_Activator::activate();
|
|
}
|
|
|
|
/**
|
|
* Plugin deactivation hook
|
|
*/
|
|
function twp_deactivate() {
|
|
require_once TWP_PLUGIN_DIR . 'includes/class-twp-deactivator.php';
|
|
TWP_Deactivator::deactivate();
|
|
}
|
|
|
|
register_activation_hook(__FILE__, 'twp_activate');
|
|
register_deactivation_hook(__FILE__, 'twp_deactivate');
|
|
|
|
/**
|
|
* Core plugin class
|
|
*/
|
|
require plugin_dir_path(__FILE__) . 'includes/class-twp-core.php';
|
|
|
|
/**
|
|
* Begin execution of the plugin
|
|
*/
|
|
function run_twilio_wp_plugin() {
|
|
$plugin = new TWP_Core();
|
|
$plugin->run();
|
|
}
|
|
|
|
run_twilio_wp_plugin(); |