diff --git a/index.php b/index.php index f67ebf9..4c676fa 100644 --- a/index.php +++ b/index.php @@ -1,9 +1,8 @@ >'; -$block_slug = basename( dirname( __FILE__ ) ); - add_action( 'init', function() { + $block_namespace = '<>'; + $block_slug = '<>'; + global $block_slug, $block_namespace; if ( ! function_exists( 'register_block_type' ) ) {