[ Index ]

WordPress 5.4.1

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    




/wp-includes/blocks/ -> latest-posts.php (summary)

Server-side rendering of the `core/latest-posts` block.

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

Defines 3 functions


Functions that are not part of a class:

block_core_latest_posts_get_excerpt_length()   X-Ref
Callback for the excerpt_length filter used by
the Latest Posts block at render time.

return: int Returns the global $block_core_latest_posts_excerpt_length variable

render_block_core_latest_posts( $attributes )   X-Ref
Renders the `core/latest-posts` block on server.

param: array $attributes The block attributes.
return: string Returns the post content with latest posts added.

register_block_core_latest_posts()   X-Ref
Registers the `core/latest-posts` block on server.

Generated: Tue May 19 15:51:04 2020 Cross-referenced by PHPXref 0.7.1