Core Function
View Source on Trac ↗ render_block_core_latest_posts()
render_block_core_latest_posts( mixed $attributes ) Renders the `core/latest-posts` block on server.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $attributes array | The block attributes. Required |
Return Value
(string)
Returns the post content with latest posts added.
Function Information
Since Version
5.0.0
Source File
wp-includes/blocks/latest-posts.php
Advertisement