REFACTOR Remove unused block registration code for improved clarity

This commit is contained in:
Antoine M 2025-12-11 15:34:29 +01:00
parent 7a369831e7
commit 342aef24c3

View File

@ -27,13 +27,6 @@ function create_block_dynamiques_blocks_block_init()
register_block_type(__DIR__ . '/acf-blocks/statistics-datas');
if (function_exists('wp_register_block_types_from_metadata_collection')) {
wp_register_block_types_from_metadata_collection(__DIR__ . '/build', __DIR__ . '/build/blocks-manifest.php');
return;
}
if (function_exists('wp_register_block_metadata_collection')) {
wp_register_block_metadata_collection(__DIR__ . '/build', __DIR__ . '/build/blocks-manifest.php');
}