[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

Adds the wp-block-list class to the rendered list block.

File Size: 54 lines (1 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 functions

  block_core_list_render()
  register_block_core_list()

Functions
Functions that are not part of a class:

block_core_list_render( $attributes, $content )   X-Ref
Adds the wp-block-list class to the rendered list block.
Ensures that pre-existing list blocks use the class name on the front.
For example, <ol> is transformed to <ol class="wp-block-list">.

param: array  $attributes Attributes of the block being rendered.
param: string $content Content of the block being rendered.
return: string The content of the block being rendered.

register_block_core_list()   X-Ref
Registers the `core/list` block on server.




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