PluginProbe
Additional Terms Lite for WooCommerce / trunk
Additional Terms Lite for WooCommerce vtrunk
1.7.3 1.7.2.1 trunk 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.2.2 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.6.0 1.6.1 1.6.2 1.6.3 All 35 releases
woo-additional-terms / src / WooCommerce / Block / Register.php

Register.php in Additional Terms Lite for WooCommerce trunk, at src/WooCommerce/Block/Register.php

43 lines 778 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Register the inner block for the WooCommerce checkout block.
4 *
5 * @since 1.6.0
6 *
7 * @package woo-additional-terms
8 */
9
10 namespace Woo_Additional_Terms\WooCommerce\Block;
11
12 /**
13 * Register editor block.
14 */
15 class Register {
16
17 /**
18 * Setup hooks and filters.
19 *
20 * @since 1.6.0
21 *
22 * @return void
23 */
24 public function setup() {
25
26 add_action( 'woocommerce_blocks_checkout_block_registration', array( $this, 'block_registration' ) );
27 }
28
29 /**
30 * Registers block type and registers with WC Blocks Integration Interface.
31 *
32 * @since 1.6.0
33 *
34 * @param object $integration_registry WC Blocks integration registry.
35 *
36 * @return void
37 */
38 public function block_registration( $integration_registry ) {
39
40 $integration_registry->register( new Block() );
41 }
42 }
43