[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/blocks/ -> post-comments.php (summary)

Server-side rendering of the `core/post-comments` block.

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

Defines 3 functions

  render_block_core_post_comments()
  register_block_core_post_comments()
  post_comments_block_form_defaults()

Functions
Functions that are not part of a class:

render_block_core_post_comments( $attributes, $content, $block )   X-Ref
Renders the `core/post-comments` block on the server.

param: array    $attributes Block attributes.
param: string   $content    Block default content.
param: WP_Block $block      Block instance.
return: string Returns the filtered post comments for the current post wrapped inside "p" tags.

register_block_core_post_comments()   X-Ref
Registers the `core/post-comments` block on the server.


post_comments_block_form_defaults( $fields )   X-Ref
Use the button block classes for the form-submit button.

param: array $fields The default comment form arguments.
return: array Returns the modified fields.



Generated: Tue Jan 25 01:00:04 2022 Cross-referenced by PHPXref 0.7.1