forked from bearded-avenger/wp-live-search
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wp-live-search.php
executable file
·35 lines (30 loc) · 1.2 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
33
34
35
<?php
/**
*
* @package WP_Live_Search
* @author Jaay Martelli <[email protected]>
* @license GPL-2.0+
* @link https://github.com/Jany-M/wp-live-search
*
* Plugin Name: WP Live Search
* Plugin URI: http://www.shambix.com
* Description: A super light-weight live search plugin that utilizes the WP REST API V2. Search isn't working atm.
* Version: 2.0
* GitHub Plugin URI: https://github.com/Jany-M/wp-live-search
*
* Original Author Nick Haskins <[email protected]>
* Original Author URI: http://nickhaskins.com
* Original Script: 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' ) );