[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/blocks/ -> index.php (summary)

Used to set up all core blocks used with the block editor.

File Size: 177 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 5 files
 wp-includes/blocks/require-dynamic-blocks.php
 wp-includes/blocks/require-static-blocks.php
 wp-includes/blocks/widget-group.php
 wp-includes/blocks/legacy-widget.php
 wp-includes/blocks/blocks-json.php

Defines 3 functions

  register_core_block_style_handles()
  register_core_block_types_from_metadata()
  wp_register_core_block_metadata_collection()

Functions
Functions that are not part of a class:

register_core_block_style_handles()   X-Ref
Registers core block style handles.

While {@see register_block_style_handle()} is typically used for that, the way it is
implemented is inefficient for core block styles. Registering those style handles here
avoids unnecessary logic and filesystem lookups in the other function.


register_core_block_types_from_metadata()   X-Ref
No description

wp_register_core_block_metadata_collection()   X-Ref
Registers the core block metadata collection.

This function is hooked into the 'init' action with a priority of 9,
ensuring that the core block metadata is registered before the regular
block initialization that happens at priority 10.




Generated : Thu Nov 21 08:20:01 2024 Cross-referenced by PHPXref