learndash_ld_course_list_shortcode_defaults

apply_filters( 'learndash_ld_course_list_shortcode_defaults',  array $shortcode_default )

Filters course list shortcode attribute defaults.


Description #


Parameters #

$shortcode_default

(array) An array of default shortcode attributes.


Source #

File: includes/class-ld-lms.php


Examples #

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

		// Always return $shortcode_default.
		return $shortcode_default;
	}
);