Browse: Home / Classes / LearnDash_Gutenberg_Block_Visitor /

LearnDash_Gutenberg_Block_Visitor::render_block

LearnDash_Gutenberg_Block_Visitor::render_block( array $block_attributes = array(),  string $block_content = '',  WP_Block $block = null )

Render Block


Description #

This function is called per the register_block_type() function above. This function will output the block rendered content. In the case of this function the rendered output will be for the [visitor] shortcode.


Parameters #

$block_attributes

(array) (Optional) The block attributes.

Default value: array()

$block_content

(string) (Optional) The block content.

Default value: ''

$block

(WP_Block) (Optional) The block object.

Default value: null


Return #

(string) The rendered output HTML.


Source #

File: includes/gutenberg/blocks/ld-visitor/index.php


Changelog #

Changelog
Version Description
4.0.0 Introduced.