Updated Build Template of Elementor block.
This commit is contained in:
1 parent
50d743140b
commit
df7866b8b5
2 files changed
+6
-19
No files matched your search
@@ -7,7 +7,8 @@ class <%= blockClassModel %>_Component <% if (isComponentManager || isElementor)
|
||||
public $hook_prefix = 'axeweb_blocks/<%= ownerFilename %>/<%= blockFilename %>';<% } %>
|
||||
|
||||
<% if (!isComponentManager) { %>public function __construct() {
|
||||
// add_action( 'wp_enqueue_scripts', [ $this, 'register_assets' ] );
|
||||
<% if (isElementor) { %>parent::__construct();
|
||||
<% } %>// add_action( 'wp_enqueue_scripts', [ $this, 'register_assets' ] );
|
||||
add_action( 'after_setup_theme', [ $this, 'register_assets' ] );
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user