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 |
---|
string
ID of the dropdown field.
string
Returns 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_Post
Optional. Post ID or WP_Post object. Default is global $post.
string
The 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 |
array
The block attributes.
string
Returns the post content with archives added.render_block_core_block(array $attributes) : string
package | gutenberg |
---|
array
The block attributes.
string
Rendered HTML of the referenced block.render_block_core_categories(array $attributes) : string
package | gutenberg |
---|
array
The block attributes.
string
Returns the categories list/dropdown markup.render_block_core_latest_posts(array $attributes) : string
package | gutenberg |
---|
array
The block attributes.
string
Returns the post content with latest posts added.render_block_core_shortcode(array $attributes, string $content) : string
package | gutenberg |
---|
array
The block attributes.
string
The block content.
string
Returns the block content.
Renders the `core/latest-comments` block on server.
Parameters
$attributes
array
The block attributes.
Returns
string
Returns the post content with latest comments added.