[ 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: 157 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 5 files
 wp-includes/blocks/widget-group.php
 wp-includes/blocks/require-static-blocks.php
 wp-includes/blocks/require-dynamic-blocks.php
 wp-includes/blocks/blocks-json.php
 wp-includes/blocks/legacy-widget.php

Defines 2 functions

  register_core_block_style_handles()
  register_core_block_types_from_metadata()

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



Generated : Tue Apr 23 08:20:01 2024 Cross-referenced by PHPXref