Code format - build of wordpress.
This commit is contained in:
@@ -9,8 +9,8 @@ class <%= blockClassModel %>_Component <% if (isComponentManager) { %>extends \C
|
|||||||
// add_action( 'wp_enqueue_scripts', [ $this, 'register_assets' ] );
|
// add_action( 'wp_enqueue_scripts', [ $this, 'register_assets' ] );
|
||||||
add_action( 'after_setup_theme', [ $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 = plugin_dir_url( __FILE__ ); // In Plugins
|
||||||
// $base_path = get_template_directory_uri() . '/components/partials/<%= blockFilename %>/'; // In Theme
|
// $base_path = get_template_directory_uri() . '/components/partials/<%= blockFilename %>/'; // In Theme
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user