forked from WebDevStudios/wds-headless-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wds-headless-core.php
38 lines (33 loc) · 1.17 KB
/
wds-headless-core.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
<?php
/**
* Plugin Name: WDS Headless (Core)
* Plugin URI: https://github.com/WebDevStudios/nextjs-wordpress-starter
* Description: The core WordPress plugin for the Next.js WordPress Starter.
* Author: WebDevStudios <[email protected]>
* Author URI: https://webdevstudios.com
* Version: 2.1.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_Core
*/
namespace WDS_Headless_Core;
if ( ! defined( 'ABSPATH' ) ) {
return;
}
// Define constants.
define( 'WDS_HEADLESS_CORE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'WDS_HEADLESS_CORE_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'WDS_HEADLESS_CORE_VERSION', '2.1.0' );
define( 'WDS_HEADLESS_CORE_OPTION_NAME', 'headless_config' );
// Register de/activation hooks.
register_activation_hook( __FILE__, __NAMESPACE__ . '\activation_callback' );
register_deactivation_hook( __FILE__, __NAMESPACE__ . '\deactivation_callback' );
require_once 'inc/editor.php';
require_once 'inc/links.php';
require_once 'inc/media.php';
require_once 'inc/menus.php';
require_once 'inc/settings.php';
require_once 'inc/wp-graphql.php';