[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

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

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

Defines 2 functions

  render_block_core_file()
  register_block_core_file()

Functions
Functions that are not part of a class:

render_block_core_file( $attributes, $content )   X-Ref
When the `core/file` block is rendering, check if we need to enqueue the `'wp-block-file-view` script.

param: array  $attributes The block attributes.
param: string $content    The block content.
return: string Returns the block content.

register_block_core_file()   X-Ref
No description



Generated : Mon Jan 30 08:20:01 2023 Cross-referenced by PHPXref