learndash_block_markers_shortcode_atts

apply_filters( 'learndash_block_markers_shortcode_atts',  array $attributes,  string $shortcode_slug,  string $block_slug,  string $content )

Filters WordPress block content shortcode attributes.


Description #


Parameters #

$attributes

(array) An array of shortcode attributes.

$shortcode_slug

(string) Slug of the shortcode.

$block_slug

(string) Slug of the gutenberg block.

$content

(string) Shortcode content.


Source #

File: includes/gutenberg/blocks/ld-group-list/index.php


Examples #

 <?php
/**
 * Example usage for learndash_block_markers_shortcode_atts filter.
 */
add_filter(
	'learndash_block_markers_shortcode_atts',
	function( $attributes, $shortcode_slug, $block_slug, $content ) {
		// May add any custom logic using $attributes, $shortcode_slug, $block_slug, $content.

		// Always return $attributes.
		return $attributes;
	},
	10,
	4
);