[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

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

File Size: 88 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.

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

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.

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



Generated : Thu Nov 21 08:20:01 2024 Cross-referenced by PHPXref