-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathusercentrics-custom-blocks.php
More file actions
40 lines (32 loc) · 1.3 KB
/
usercentrics-custom-blocks.php
File metadata and controls
40 lines (32 loc) · 1.3 KB
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
<?php
/**
*
*
* @link https://github.com/italloleon/usercentrics-custom-blocks
* @since 1.0.0
* @package Usercentrics_Custom_Blocks
*
* @wordpress-plugin
* Plugin Name: Usercentrics Custom Blocks
* Plugin URI: https://github.com/italloleon/usercentrics-custom-blocks
* Description: A plugin created to register custom Gutenberg blocks for the Usercentrics company challenge for the Senior WordPress Developer role.
* Version: 1.0.0
* Author: Itallo Leonardo
* Author URI: https://github.com/italloleon
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: usercentrics-custom-blocks
* Domain Path: /languages
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
require_once __DIR__ . '/vendor/autoload.php';
define( 'USERCENTRICS_CUSTOM_BLOCKS_PATH', plugin_dir_path( __FILE__ ) );
define( 'USERCENTRICS_CUSTOM_BLOCKS_URL', plugin_dir_url( __FILE__ ) );
use ItalloLeonardo\UsercentricsCustomBlocks\UsercentricsCustomBlocks;
function usercentrics_custom_blocks_init() {
$usercentrics_custom_blocks = new UsercentricsCustomBlocks(USERCENTRICS_CUSTOM_BLOCKS_PATH);
$usercentrics_custom_blocks->init();
}
add_action( 'plugins_loaded', 'usercentrics_custom_blocks_init' );