-
Notifications
You must be signed in to change notification settings - Fork 5
/
joinchat.php
60 lines (52 loc) · 1.6 KB
/
joinchat.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
/**
* Connect WordPress with WhatsApp
*
* @link https://crea.me
* @since 1.0.0
* @package Joinchat
*
* @wordpress-plugin
* Plugin Name: Joinchat
* Plugin URI: https://join.chat
* Description: Connects a WordPress chat with WhatsApp. The best solution for marketing and support. Stop losing customers and increase your sales.
* Version: 5.1.8
* Author: Creame
* Author URI: https://crea.me
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: creame-whatsapp-me
* Domain Path: /languages
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
/**
* Define constants.
*/
define( 'JOINCHAT_VERSION', '5.1.8' );
define( 'JOINCHAT_SLUG', 'joinchat' );
define( 'JOINCHAT_FILE', __FILE__ );
define( 'JOINCHAT_DIR', plugin_dir_path( JOINCHAT_FILE ) );
define( 'JOINCHAT_BASENAME', plugin_basename( JOINCHAT_FILE ) );
/**
* The core plugin class that is used to define internationalization,
* admin-specific hooks, and public-facing site hooks.
*/
require JOINCHAT_DIR . 'includes/class-joinchat.php';
/**
* Begins execution of the plugin.
*
* Everything within the plugin is registered via hooks,
* but initiation is delayed to 'init' hook to allow extensions
* or third party plugins to change Joinchat behavior.
*
* @since 1.0.0
* @since 3.0.0 Replaced direct run() to launch via 'init' hook
*/
function run_joinchat() {
$plugin = new Joinchat();
add_action( 'init', array( $plugin, 'run' ) );
}
run_joinchat();