-
Notifications
You must be signed in to change notification settings - Fork 13
/
wp-live-search.php
executable file
·32 lines (27 loc) · 1.03 KB
/
wp-live-search.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
<?php
/**
*
* @package WP_Live_Search
* @author Nick Haskins <email@nickhaskins.com>
* @license GPL-2.0+
* @link http://example.com
* @copyright 2015 Your Name or Company Name
*
* Plugin Name: WP Live Search
* Plugin URI: http://nickhaskins.com
* Description: A super light-weight live search plugin that utilizes the WP REST API
* Version: 0.9
* GitHub Plugin URI: https://github.com/bearded-avenger/wp-live-search
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
// Set some constants
define('WP_LIVE_SEARCH_VERSION', '0.9');
define('WP_LIVE_SEARCH_DIR', plugin_dir_path( __FILE__ ));
define('WP_LIVE_SEARCH_URL', plugins_url( '', __FILE__ ));
require_once( plugin_dir_path( __FILE__ ) . 'public/class-wp-live-search.php' );
register_activation_hook( __FILE__, array( 'WP_Live_Search', 'activate' ) );
register_deactivation_hook( __FILE__, array( 'WP_Live_Search', 'deactivate' ) );
add_action( 'plugins_loaded', array( 'WP_Live_Search', 'get_instance' ) );