-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
$slug.php.mustache
38 lines (35 loc) · 949 Bytes
/
$slug.php.mustache
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
36
37
38
<?php
/**
* Plugin Name: {{title}}
{{#description}}
* Description: {{description}}
{{/description}}
* Version: {{version}}
{{#author}}
* Author: {{author}}
{{/author}}
{{#license}}
* License: {{license}}
{{/license}}
{{#licenseURI}}
* License URI: {{{licenseURI}}}
{{/licenseURI}}
* Text Domain: {{textdomain}}
*
* @package {{namespace}}
*/
define( '{{slugConstantCase}}_BLOCK_PLUGIN_VERSION', '0.1.0' );
define( '{{slugConstantCase}}_BLOCK_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( '{{slugConstantCase}}_BLOCK_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
add_action(
'woocommerce_blocks_loaded',
function() {
require_once __DIR__ . '/{{slug}}-blocks-integration.php';
add_action(
'woocommerce_blocks_checkout_block_registration',
function( $integration_registry ) {
$integration_registry->register( new {{slugPascalCase}}_Blocks_Integration() );
}
);
}
);