-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
25 lines (25 loc) · 927 Bytes
/
functions.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
<?php
/**
* We use WordPress's init hook to make sure
* our blocks are registered early in the loading
* process.
*
* @link https://developer.wordpress.org/reference/hooks/init/
*/
function register_acf_blocks() {
/**
* We register our block's with WordPress's handy
* register_block_type();
*
* @link https://developer.wordpress.org/reference/functions/register_block_type/
*/
register_block_type( __DIR__ . '/blocks/testimonial-example-1' );
// ACF Block demonstratin InnerBlocks usage.
register_block_type( __DIR__ . '/blocks/testimonial-example-2' );
// Extends the InnerBlocks usage and introduces Block Styles.
register_block_type( __DIR__ . '/blocks/testimonial-example-3' );
// Demonstrates Variations usage in block.json.
register_block_type( __DIR__ . '/blocks/testimonial-example-4' );
}
// Here we call our register_acf_block() function on init.
add_action( 'init', 'register_acf_blocks' );