Browse: Home / Classes / LearnDash_Gutenberg_Block /


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

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

Description #

Each sub-subclassed instance should provide its own version of this function.

Parameters #


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

Default value: array()


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

Default value: ''


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

Default value: ''


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

Default value: ''

Return #

(array) $block_attributes.

Source #

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

Changelog #

Version Description
2.5.9 Introduced.