plugin_dir_path( __DIR__ ), 'pluginDirUrl' => plugin_dir_url( __DIR__ ), ] ); global $am360_view_attributes_tree; wp_localize_script( 'am360view-cgb-block-js', 'am360ViewAttributesTree', $am360_view_attributes_tree ); register_block_type( 'am360view/advanced', array( 'style' => 'am360view-cgb-style-css', 'editor_script' => 'am360view-cgb-block-js', 'editor_style' => 'am360view-cgb-block-editor-css', 'render_callback' => 'am360view_shortcode' ) ); } add_action( 'init', 'am360view_block_assets' );