forked from braddalton/jetpack-local
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjetpack_local.php
49 lines (38 loc) · 1.36 KB
/
jetpack_local.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
<?php
/**
* Jetpack Local.
*
* Enables The Use Of Jetpack On Local Hosts Without Connection To The Internet
*
* @package Jetpack Local
* @author Brad Dalton [email protected]
* @license GPL-2.0+
* @link http://wpsites.net
* @copyright 2014 WP Sites
*
* @wordpress-plugin
* Plugin Name: Jetpack Local
* Plugin URI: @TODO
* Description: @TODO
* Version: 1.0.0
* Author: Brad Dalton
* Author URI: http://wpsites.net
* Text Domain: plugin-name-locale
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Domain Path: /languages
* GitHub Plugin URI: https://github.com/braddalton
* WordPress-Plugin-Boilerplate: v2.6.1
*/
if ( ! defined( 'WPINC' ) ) {
die;
}
require_once( plugin_dir_path( __FILE__ ) . 'public/class-jetpack-local.php' );
register_activation_hook( __FILE__, array( 'jetpack-local', 'activate' ) );
register_deactivation_hook( __FILE__, array( 'jetpack-local', 'deactivate' ) );
add_action( 'plugins_loaded', array( 'Jetpack_Local', 'get_instance' ) );
if ( is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) {
require_once( plugin_dir_path( __FILE__ ) . 'jetpack-local-admin.php' );
add_action( 'plugins_loaded', array( 'Jetpack_Local', 'get_instance' ) );
}
add_filter( 'jetpack_development_mode', '__return_true' );