ld_course_list_shortcode_attr_defaults

apply_filters( 'ld_course_list_shortcode_attr_defaults',  array $shortcode_default,  array $shortcode_args )

Filters course list shortcode attribute defaults.


Description #


Parameters #

$shortcode_default

(array) An Array of default shortcode attributes.

$shortcode_args

(array) User defined attributes in shortcode tag.


Source #

File: includes/shortcodes/ld_course_list.php


Examples #

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

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