-
Notifications
You must be signed in to change notification settings - Fork 1
/
pixelkey-algolia.php
53 lines (43 loc) · 1.17 KB
/
pixelkey-algolia.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
<?php
/**
* Pixel Key Algolia Plugin
*
* @package pixelkey-algolia
*
* Plugin Name: Pixel Key Algolia
* Description: Provides indexing services for Algolia
* Version: 1.0.4
* Text Domain: pixelkey-algolia
* Domain Path: /languages/
* Requires PHP: ^7.3
*
*/
// Plugin name
define('PIXELKEY_ALGOLIA_PLUGIN_NAME', 'Pixel Key Algolia');
// Plugin version
define('PIXELKEY_ALGOLIA_PLUGIN_VERSION', '1.0.4');
// Plugin Root File
define('PIXELKEY_ALGOLIA_PLUGIN_FILE', __FILE__);
// Plugin Folder Path
define('PIXELKEY_ALGOLIA_PLUGIN_DIR', plugin_dir_path(PIXELKEY_ALGOLIA_PLUGIN_FILE));
// Plugin Folder URL
define('PIXELKEY_ALGOLIA_PLUGIN_URL', plugin_dir_url(PIXELKEY_ALGOLIA_PLUGIN_FILE));
// Autoload Composer
require PIXELKEY_ALGOLIA_PLUGIN_DIR . '/vendor/autoload.php';
/**
* Load the main class for the core functionality
*/
require_once PIXELKEY_ALGOLIA_PLUGIN_DIR . 'core/PixelkeyAlgolia.php';
/**
* The main function to load the only instance
* of our master class.
*
* @author Pixel Key
* @since 1.0.0
* @return object|PixelkeyAlgolia
*/
function PixelkeyAlgolia()
{
return PixelkeyAlgolia::instance();
}
PixelkeyAlgolia();