Core Function
View Source on Trac ↗ render_block_core_post_title()
render_block_core_post_title( mixed $attributes, mixed $content, mixed $block ) Renders the `core/post-title` block on the server.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $attributes array | Block attributes. Required |
| $content string | Block default content. Required |
| $block WP_Block | Block instance. Required |
Return Value
(string)
Returns the filtered post title for the current post wrapped inside "h1" tags.
Function Information
Since Version
6.3.0 Omitting the $post argument from the `get_the_title`.
Source File
wp-includes/blocks/post-title.php
Advertisement