Browse: Home / Hooks /


apply_filters( 'learndash_convert_block_markers_to_shortcode_content',  string $content,  array $pattern_atts_array,  string $shortcode_slug,  string $block_slug )

Filters the shortcode content after converting it from WordPress block content.

Description #

Parameters #


(string) Shortcode content after conversion.


(array) An array of pattern attributes to use for conversion.


(string) The slug of shortcode.


(string) The slug of gutenberg block.

Source #

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

Examples #

Note: Extended code example below not guaranteed, you may need to consult with a developer

 * Example usage for learndash_convert_block_markers_to_shortcode_content filter.
	function( $content, $pattern_atts_array, $shortcode_slug, $block_slug ) {
		// May add any custom logic using $content, $pattern_atts_array, $shortcode_slug, $block_slug.

		// Always return $content.
		return $content;