Browse: Home / Classes / LearnDash_Gutenberg_Block /

LearnDash_Gutenberg_Block::build_block_shortcode

LearnDash_Gutenberg_Block::build_block_shortcode( array $block_attributes = array(),  string $block_content = '' )

Build the block shortcode from attributes string.


Description #


Parameters #

$block_attributes

(array) (Optional) Block attributes array.

Default value: array()

$block_content

(string) (Optional) Used for inner blocks.

Default value: ''


Return #

(string) $shortcode_str.


Source #

File: includes/gutenberg/lib/class-learndash-gutenberg-block.php


Changelog #

Changelog
Version Description
4.0.0 Introduced.