|
|
|
@ -24,7 +24,6 @@ class <%= blockClassModel %>_Component extends \Core\Component { |
|
|
|
|
|
|
|
wp_enqueue_script( 'script-block-<%= blockFilename %>' ); |
|
|
|
}<% } %> |
|
|
|
|
|
|
|
<% if (include_elementor_widget) { %>function register_custom_logic(): void { |
|
|
|
add_action( 'elementor/widgets/widgets_registered', [ $this, 'register_elementor_widget' ] ); |
|
|
|
} |
|
|
|
@ -49,7 +48,6 @@ class <%= blockClassModel %>_Component extends \Core\Component { |
|
|
|
] |
|
|
|
] ); |
|
|
|
} |
|
|
|
|
|
|
|
<% } %><% if (include_native_gutenberg_block) { %> function register_native_gutenberg_block() { |
|
|
|
register_block_type( __DIR__ . '/templates/gutenberg-block/block.json' );<% if (include_script) { %> |
|
|
|
|
|
|
|
|