diff --git a/platforms/wordpress/templates/Template_Basic_Component.php b/platforms/wordpress/templates/Template_Basic_Component.php index b261026..620556e 100644 --- a/platforms/wordpress/templates/Template_Basic_Component.php +++ b/platforms/wordpress/templates/Template_Basic_Component.php @@ -9,8 +9,8 @@ class <%= blockClassModel %>_Component <% if (isComponentManager) { %>extends \C // add_action( 'wp_enqueue_scripts', [ $this, 'register_assets' ] ); add_action( 'after_setup_theme', [ $this, 'register_assets' ] ); } - <% } %> - function register_assets(): void { + + <% } %>function register_assets(): void { $base_path = plugin_dir_url( __FILE__ ); // In Plugins // $base_path = get_template_directory_uri() . '/components/partials/<%= blockFilename %>/'; // In Theme