PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 14.8.1
Jetpack – WP Security, Backup, Speed, & Growth v14.8.1
12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 14.1.1 14.2.2 14.3.1 14.4.2 All 500 releases
jetpack / extensions / blocks / recipe / recipe.php
recipe.php
69 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Recipe Block.
4 *
5 * @since 11.1
6 *
7 * @package automattic/jetpack
8 */
9
10 use Automattic\Jetpack\Blocks;
11
12 add_action(
13 'init',
14 function () {
15 Blocks::jetpack_register_block(
16 __DIR__,
17 array(
18 'render_callback' => array( 'Automattic\\Jetpack\\Extensions\\Recipe\\Jetpack_Recipe_Block', 'render' ),
19 )
20 );
21
22 Blocks::jetpack_register_block(
23 'jetpack/recipe-details',
24 array(
25 'parent' => array( 'jetpack/recipe' ),
26 )
27 );
28
29 Blocks::jetpack_register_block(
30 'jetpack/recipe-hero',
31 array(
32 'parent' => array( 'jetpack/recipe' ),
33 'render_callback' => array( 'Automattic\\Jetpack\\Extensions\\Recipe\\Jetpack_Recipe_Block', 'render_hero' ),
34 )
35 );
36
37 Blocks::jetpack_register_block(
38 'jetpack/recipe-ingredients-list',
39 array(
40 'parent' => array( 'jetpack/recipe' ),
41 )
42 );
43
44 Blocks::jetpack_register_block(
45 'jetpack/recipe-ingredient-item',
46 array(
47 'parent' => array( 'jetpack/recipe' ),
48 )
49 );
50
51 Blocks::jetpack_register_block(
52 'jetpack/recipe-steps',
53 array(
54 'parent' => array( 'jetpack/recipe' ),
55 )
56 );
57
58 Blocks::jetpack_register_block(
59 'jetpack/recipe-step',
60 array(
61 'parent' => array( 'jetpack/recipe' ),
62 'render_callback' => array( 'Automattic\\Jetpack\\Extensions\\Recipe\\Jetpack_Recipe_Block', 'render_step' ),
63 )
64 );
65 }
66 );
67
68 require_once __DIR__ . '/class-jetpack-recipe-block.php';
69