forked from chandu/twist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
twist.php
31 lines (24 loc) · 902 Bytes
/
twist.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
/**
* @package TwiST
*/
/*
Plugin Name: Twilio SMS Tool
Version: 0.0.2
Author: Chandu
*/
// Make sure we don't expose any info if called directly
if ( !function_exists( 'add_action' ) ) {
echo 'Hi there! I\'m just a plugin, not much I can do when called directly.';
exit;
}
define( 'TWIST__PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'TWIST__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
require_once( TWIST__PLUGIN_DIR . 'class.twist-installer.php' );
register_activation_hook( __FILE__, array( "Twist_Installer", "install"));
register_uninstall_hook(__FILE__, array( "Twist_Installer","uninstall"));
register_deactivation_hook(__FILE__, array( "Twist_Installer","uninstall"));
require_once( TWIST__PLUGIN_DIR . 'class.twist-settings-manager.php' );
require_once( TWIST__PLUGIN_DIR . 'class.twist-tool-manager.php' );
Twist_Settings_Manager::init();
Twist_Tool_Manager::init();