LLMS_Shortcode_Courses::get_default_attributes()

Get shortcode attributes


Description Description

Retrieves an array of default attributes which are automatically merged with the user submitted attributes and passed to $this->get_output().


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/shortcodes/class.llms.shortcode.courses.php

	protected function get_default_attributes() {
		return array(
			'category'       => '',
			'hidden'         => 'yes',
			'id'             => '', // Allow comma-separated list of course ids.
			'mine'           => 'no',
			'post_status'    => 'publish',
			'posts_per_page' => -1,
			'order'          => 'ASC',
			'orderby'        => 'title',
		);
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.14.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.