Browse: Home / Hooks /

learndash_shortcode_atts

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

Filters shortcode attributes.


Description #


Parameters #

$atts

(array) An array of shortcode attributes.

$shortcode_slug

(string) The current shortcode slug.


Source #

File: includes/shortcodes/ld_course_resume.php


Examples #

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

 <?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
);