-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathwp-redisearch.php
More file actions
43 lines (39 loc) · 909 Bytes
/
wp-redisearch.php
File metadata and controls
43 lines (39 loc) · 909 Bytes
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
<?php
/*
Plugin Name: RediSearch
Version: 0.3.4
Description: Replace Wordpress search by RediSearch.
Author: Foad Yousefi
Author URI: https://github.com/7kmCo/wp-redisearch
*/
if ( ! defined( 'WPINC' ) ) {
die;
}
// Plugin path.
if ( ! defined( 'WPRS_PATH' ) ) {
define( 'WPRS_PATH', plugin_dir_path( __FILE__ ) );
}
// Plugin URL.
if ( ! defined( 'WPRS_URL' ) ) {
define( 'WPRS_URL', plugin_dir_url( __FILE__ ) );
}
// Plugin base.
if ( ! defined( 'WPRS_BASE' ) ) {
define( 'WPRS_BASE', plugin_basename( __FILE__ ) );
}
// Plugin name.
if ( ! defined( 'WPRS_NAME' ) ) {
define( 'WPRS_NAME', 'wp-redisearch' );
}
// Plugin version .
if ( ! defined( 'WPRS_VERSION' ) ) {
define( 'WPRS_VERSION', '0.3.4' );
}
/**
* Register WP-CLI commands.
*/
if ( defined( 'WP_CLI' ) && WP_CLI ) {
require_once( 'bin/wp-cli.php' );
}
require_once __DIR__ . '/vendor/autoload.php';
new WpRediSearch\WpRediSearch;