generated from helsingborg-stad/Wordpress-Plugin-Boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathalgolia-index.php
35 lines (28 loc) · 1.05 KB
/
algolia-index.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
/**
* Plugin Name: Algolia Index
* Plugin URI: https://github.com/helsingborg-stad/algolia-index
* Description: Manages algolia index (with ms-support and mixed indexes)
* Version: 3.2.1
* Author: Sebastian Thulin
* Author URI: https://github.com/sebastianthulin
* License: MIT
* License URI: https://opensource.org/licenses/MIT
* Text Domain: algolia-index
* Domain Path: /languages
*/
// Protect agains direct file access
if (! defined('WPINC')) {
die;
}
define('ALGOLIAINDEX_PATH', plugin_dir_path(__FILE__));
define('ALGOLIAINDEX_URL', plugins_url('', __FILE__));
define('ALGOLIAINDEX_TEMPLATE_PATH', ALGOLIAINDEX_PATH . 'templates/');
load_plugin_textdomain('algolia-index', false, plugin_basename(dirname(__FILE__)) . '/languages');
// Autoload from plugin
if (file_exists(ALGOLIAINDEX_PATH . 'vendor/autoload.php')) {
require_once ALGOLIAINDEX_PATH . 'vendor/autoload.php';
}
require_once ALGOLIAINDEX_PATH . 'Public.php';
// Start application
new AlgoliaIndex\App();