forked from cuttlesoft/wds-headless-blocks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wds-headless-blocks.php
36 lines (30 loc) · 1.13 KB
/
wds-headless-blocks.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
<?php
/**
* Plugin Name: WDS Headless (Blocks)
* Plugin URI: https://github.com/WebDevStudios/nextjs-wordpress-starter
* Description: WDS Headless extension handling Gutenberg block functionality.
* Author: WebDevStudios <[email protected]>
* Author URI: https://webdevstudios.com
* Version: 1.0.1
* 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_Blocks
*/
namespace WDS_Headless_Blocks;
if ( ! defined( 'ABSPATH' ) ) {
return;
}
// Define constants.
define( 'WDS_HEADLESS_BLOCKS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'WDS_HEADLESS_BLOCKS_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'WDS_HEADLESS_BLOCKS_VERSION', '1.0.1' );
require_once WDS_HEADLESS_BLOCKS_PLUGIN_DIR . 'activation.php';
require_once WDS_HEADLESS_BLOCKS_PLUGIN_DIR . 'deactivation.php';
// Register de/activation hooks.
register_activation_hook( __FILE__, __NAMESPACE__ . '\activation_callback' );
register_deactivation_hook( __FILE__, __NAMESPACE__ . '\deactivation_callback' );
require_once 'inc/block-manager.php';
require_once 'inc/blocks.php';