[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/blocks/ -> footnotes.php (summary)

Server-side rendering of the `core/footnotes` block.

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

Defines 5 functions

  render_block_core_footnotes()
  register_block_core_footnotes()
  register_block_core_footnotes_post_meta()
  wp_add_footnotes_to_revision()
  wp_get_footnotes_from_revision()

Functions
Functions that are not part of a class:

render_block_core_footnotes( $attributes, $content, $block )   X-Ref
Renders the `core/footnotes` block on the server.

return: string Returns the HTML representing the footnotes.
param: array    $attributes Block attributes.
param: string   $content    Block default content.
param: WP_Block $block      Block instance.

register_block_core_footnotes()   X-Ref
Registers the `core/footnotes` block on the server.


register_block_core_footnotes_post_meta()   X-Ref
Registers the footnotes meta field required for footnotes to work.


wp_add_footnotes_to_revision( $fields )   X-Ref
Adds the footnotes field to the revisions display.

return: array The revision fields.
param: array $fields The revision fields.

wp_get_footnotes_from_revision( $revision_field, $field, $revision )   X-Ref
Gets the footnotes field from the revision for the revisions screen.

return: string The field value.
param: string $revision_field The field value, but $revision->$field
param: string $field          The field name, in this case "footnotes".
param: object $revision       The revision object to compare against.



Generated : Sat Dec 21 08:20:01 2024 Cross-referenced by PHPXref