render_block_core_file


render_block_core_file ( $attributes, $content )

Parameters:
  • (array) attributes The block attributes.
  • (string) content The block content.
  • (WP_Block) block The parsed block.
Returns:
  • (string) Returns the block content.
Defined at:

Description

When the `core/file` block is rendering, check if we need to enqueue the `wp-block-file-view` script.

Related Functions

render_block_core_image, register_block_core_file, render_block_core_block, render_block_core_cover, render_block_core_post_title

Top Google Results

User discussions

wpseek mobile