REFACTOR Remove unused block registration code for improved clarity
This commit is contained in:
parent
7a369831e7
commit
342aef24c3
|
|
@ -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');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user