build_dropdown_script_block_core_categories
gutenberg_draft_or_post_title
gutenberg_render_block_core_latest_comments
register_block_core_archives
register_block_core_categories
register_block_core_latest_posts
register_block_core_shortcode
render_block_core_archives
render_block_core_block
render_block_core_categories
render_block_core_latest_posts
render_block_core_shortcode
build_dropdown_script_block_core_categories(string $dropdown_id) : string
| package | gutenberg |
|---|
stringID of the dropdown field.
stringReturns the dropdown onChange redirection script.gutenberg_draft_or_post_title(integer|\WP_Post $post = 0) : string
The post title is fetched and if it is blank then a default string is returned.
Copied from wp-admin/includes/template.php, but we can't include that
file because:
| package | gutenberg |
|---|---|
| since | 3.3.0 |
integer\WP_PostOptional. Post ID or WP_Post object. Default is global $post.
stringThe post title if set; "(no title)" if no title is set.register_block_core_latest_posts()
| package | gutenberg |
|---|
render_block_core_archives(array $attributes) : string
| package | gutenberg |
|---|---|
| see |
arrayThe block attributes.
stringReturns the post content with archives added.render_block_core_block(array $attributes) : string
| package | gutenberg |
|---|
arrayThe block attributes.
stringRendered HTML of the referenced block.render_block_core_categories(array $attributes) : string
| package | gutenberg |
|---|
arrayThe block attributes.
stringReturns the categories list/dropdown markup.render_block_core_latest_posts(array $attributes) : string
| package | gutenberg |
|---|
arrayThe block attributes.
stringReturns the post content with latest posts added.render_block_core_shortcode(array $attributes, string $content) : string
| package | gutenberg |
|---|
arrayThe block attributes.
stringThe block content.
stringReturns the block content.
Renders the `core/latest-comments` block on server.
Parameters
$attributes
arrayThe block attributes.
Returns
stringReturns the post content with latest comments added.