forked from WebDevStudios/wds-headless-algolia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wds-headless-algolia.php
32 lines (27 loc) · 992 Bytes
/
wds-headless-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
<?php
/**
* Plugin Name: WDS Headless (Algolia)
* Plugin URI: https://github.com/WebDevStudios/nextjs-wordpress-starter
* Description: WDS Headless extension handling Algolia functionality.
* Author: WebDevStudios <[email protected]>
* Author URI: https://webdevstudios.com
* Version: 1.0.0
* Requires at least: 5.6
* Requires PHP: 7.4
* License: GPL-2
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
*
* @package WDS_Headless_Algolia
*/
namespace WDS_Headless_Algolia;
if ( ! defined( 'ABSPATH' ) ) {
return;
}
// Define constants.
define( 'WDS_HEADLESS_ALGOLIA_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'WDS_HEADLESS_ALGOLIA_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'WDS_HEADLESS_ALGOLIA_VERSION', '1.0.0' );
// Register de/activation hooks.
register_activation_hook( __FILE__, __NAMESPACE__ . '\activation_callback' );
register_deactivation_hook( __FILE__, __NAMESPACE__ . '\deactivation_callback' );
require_once 'inc/algolia.php';