Updated Build Template of Elementor block.
This commit is contained in:
@@ -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