-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.php
More file actions
32 lines (30 loc) · 998 Bytes
/
plugin.php
File metadata and controls
32 lines (30 loc) · 998 Bytes
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: PM Blocks
* Plugin URI: https://pressmaximum.com/pm-blocks
* Description: pm-blocks — is a Gutenberg plugin created via create-guten-block.
* Author: pressmaximum
* Author URI: https://pressmaximum.com/
* Version: 1.0.0
* License: GPL2+
* License URI: https://www.gnu.org/licenses/gpl-2.0.txt
*
* @package CGB
*/
define( 'PM_BLOCKS_DIR', plugin_dir_path( __FILE__ ) );
define( 'PM_BLOCKS_URL', plugin_dir_url( __FILE__ ) );
define( 'PM_BLOCKS_VERSION', '1.0.0' );
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Block Initializer.
*/
add_action( 'plugins_loaded', 'pm_blocks_plugin_init' );
function pm_blocks_plugin_init() {
require_once plugin_dir_path( __FILE__ ) . 'src/init.php';
require_once plugin_dir_path( __FILE__ ) . 'src/components/fonts/fonts.php';
require_once plugin_dir_path( __FILE__ ) . 'src/components/icon-picker/icon-picker.php';
require_once plugin_dir_path( __FILE__ ) . 'src/helper/meta-box.php';
}