Core Function
View Source on Trac ↗ render_block_core_search()
render_block_core_search( mixed $attributes ) Dynamically renders the `core/search` block.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $attributes array | The block attributes. Required |
| $content string | The saved content. Required |
| $block WP_Block | The parsed block. Required |
Return Value
(string)
The search block markup.
Function Information
Since Version
6.3.0 Using block.json `viewScript` to register script, and update `view_script_handles()` only when needed.
Source File
wp-includes/blocks/search.php
Advertisement