[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

Server-side rendering of the `core/paragraph` block.

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

Defines 2 functions

  block_core_paragraph_add_class()
  register_block_core_paragraph()

Functions
Functions that are not part of a class:

block_core_paragraph_add_class( $block_content )   X-Ref
Append the `wp-block-paragraph` class before rendering the stored
`core/paragraph` block contents.

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

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

param: string $block_content The block content.
return: string Filtered block content.

register_block_core_paragraph()   X-Ref
Registers the `core/paragraph` block on server.




Generated : Sun Jun 14 08:20:09 2026 Cross-referenced by PHPXref