learndash_shortcode_atts

apply_filters( 'learndash_shortcode_atts',  array $atts,  string $shortcode_context )

Filters shortcode attributes.


Description #


Parameters #

$atts

(array) An array of shortcode attributes.

$shortcode_context

(string) The shortcode name for which the attributes are filtered.


Source #

File: includes/shortcodes/ld_course_resume.php


Examples #

 <?php
/**
 * Example usage for learndash_shortcode_atts filter.
 */
add_filter(
	'learndash_shortcode_atts',
	function( $atts, $shortcode_context ) {
		// May add any custom logic using $atts, $shortcode_context.

		// Always return $atts.
		return $atts;
	},
	10,
	2
);