[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

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

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

Defines 3 functions

  render_block_core_post_comments_form()
  register_block_core_post_comments_form()
  post_comments_form_block_form_defaults()

Functions
Functions that are not part of a class:

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

return: string Returns the filtered post comments form for the current post.
param: array    $attributes Block attributes.
param: string   $content    Block default content.
param: WP_Block $block      Block instance.

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


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

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



Generated: Wed Apr 24 01:00:03 2024 Cross-referenced by PHPXref 0.7.1