-
Notifications
You must be signed in to change notification settings - Fork 0
/
wp-performance-blocks.php
35 lines (32 loc) · 1.16 KB
/
wp-performance-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
<?php
/**
* Plugin Name: Wp Performance Blocks
* Description: Wp Performance Blocks
* Requires at least: 6.1
* Requires PHP: 7.0
* Version: 0.1.0
* Author: The WordPress Contributors
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: wp-performance
*/
if (! defined('ABSPATH')) {
exit; // Exit if accessed directly.
}
require_once __DIR__ . '/inc/search.php';
/**
* Registers the block using the metadata loaded from the `block.json` file.
* Behind the scenes, it registers also all assets so they can be enqueued
* through the block editor in the corresponding context.
*
* @see https://developer.wordpress.org/reference/functions/register_block_type/
*/
function create_block_wp_performance_blocks_block_init()
{
register_block_type(__DIR__ . '/build/links-credit');
register_block_type(__DIR__ . '/build/github-infos');
register_block_type(__DIR__ . '/build/search-box');
register_block_type(__DIR__ . '/build/youtube-plyr');
register_block_type(__DIR__ . '/build/training-nav');
}
add_action('init', 'create_block_wp_performance_blocks_block_init');