[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

Appending the wp-block-heading to before rendering the stored `core/heading` block contents.

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

Defines 2 functions

  block_core_heading_render()
  register_block_core_heading()

Functions
Functions that are not part of a class:

block_core_heading_render( $attributes, $content )   X-Ref
Adds a wp-block-heading class to the heading block content.

For example, the following block content:
<h2 class="align-left">Hello World</h2>

Would be transformed to:
<h2 class="align-left wp-block-heading">Hello World</h2>

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

register_block_core_heading()   X-Ref
Registers the `core/heading` block on server.




Generated : Thu Apr 25 08:20:02 2024 Cross-referenced by PHPXref