[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)





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

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

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

Defines 3 functions


Functions that are not part of a class:

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

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

block_core_file_ensure_interactivity_dependency()   X-Ref
No description

register_block_core_file()   X-Ref
Registers the `core/file` block on server.

Generated : Fri Dec 1 08:20:02 2023 Cross-referenced by PHPXref