Browse: Home / Classes / LearnDash_Gutenberg_Block /

LearnDash_Gutenberg_Block::convert_block_markers_to_shortcode_content_filter

LearnDash_Gutenberg_Block::convert_block_markers_to_shortcode_content_filter( string $content = '',  array $block_attributes = array(),  string $shortcode_slug = '',  string $block_slug = '' )

Called from the LD function convert_block_markers_to_shortcode() when parsing the block content.


Description #

This function allows hooking into the converted content.


Parameters #

$content

(string) (Optional) This is the original full content being parsed.

Default value: ''

$block_attributes

(array) (Optional) The array of attributes parse from the block content.

Default value: array()

$shortcode_slug

(string) (Optional) This will match the related LD shortcode ld_profile, ld_course_list, etc.

Default value: ''

$block_slug

(string) (Optional) This is the block token being processed. Normally same as the shortcode but underscore replaced with dash.

Default value: ''


Return #

(string) $content.


Source #

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


Changelog #

Changelog
Version Description
2.6.4 Introduced.