LLMS_Shortcode_Course_Continue_Button

LLMS_Shortcode_Course_Element


Source Source

File: includes/shortcodes/class.llms.shortcode.course.continue.button.php

class LLMS_Shortcode_Course_Continue_Button extends LLMS_Shortcode_Course_Element {

	/**
	 * Shortcode tag
	 *
	 * @var string
	 */
	public $tag = 'lifterlms_course_continue_button';

	/**
	 * Retrieves an array of default attributes which are automatically merged
	 * with the user submitted attributes and passed to $this->get_output()
	 *
	 * @since 3.11.1
	 *
	 * @return array
	 */
	protected function get_default_attributes() {
		return array(
			'course_id' => get_the_ID(),
		);
	}

	/**
	 * Call the template function for the course element
	 *
	 * @since 3.11.1
	 *
	 * @return void
	 */
	protected function template_function() {

		lifterlms_course_continue_button( $this->get_attribute( 'course_id' ) );

	}

}


Top ↑

Methods Methods

  • get_default_attributes — Retrieves an array of default attributes which are automatically merged with the user submitted attributes and passed to $this->get_output()
  • template_function — Call the template function for the course element

Top ↑

Changelog Changelog

Changelog
Version Description
3.11.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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