PluginProbe
Subscriptions for WooCommerce with Stripe Recurring Payments / 2.0.0
Subscriptions for WooCommerce with Stripe Recurring Payments v2.0.0
2.0.0 1.11.2 1.11.1 1.11.0 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.6 1.9.5 trunk 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 All 61 releases
subscription / includes / Illuminate / Block.php

Block.php in Subscriptions for WooCommerce with Stripe Recurring Payments 2.0.0, at includes/Illuminate/Block.php

39 lines 895 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace SpringDevs\Subscription\Illuminate;
4
5 /**
6 * Globally Load Scripts.
7 */
8 class Block {
9
10 /**
11 * Initialize the Class.
12 */
13 public function __construct() {
14 add_action( 'woocommerce_blocks_loaded', array( $this, 'block_registration' ) );
15 }
16
17 /**
18 * Block Registration.
19 *
20 * @return void
21 */
22 public function block_registration() {
23 require_once __DIR__ . '/wc-block-integration.php';
24 add_action( 'woocommerce_blocks_cart_block_registration', array( $this, 'register' ) );
25 add_action( 'woocommerce_blocks_checkout_block_registration', array( $this, 'register' ) );
26 }
27
28 /**
29 * Register the class.
30 *
31 * @param \Automattic\WooCommerce\Blocks\Integrations\IntegrationRegistry $integration_registry registry.
32 *
33 * @return void
34 */
35 public function register( $integration_registry ) {
36 $integration_registry->register( new \Sdevs_Subscrpt_WC_Integration() );
37 }
38 }
39