LLMS_Shortcode_Membership_Instructors

LLMS_Shortcode_Membership_Link


Source Source

File: includes/shortcodes/class.llms.shortcode.membership.instructors.php

class LLMS_Shortcode_Membership_Instructors extends LLMS_Shortcode {

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

	/**
	 * Retrieve the actual content of the shortcode
	 *
	 * $atts & $content are both filtered before being passed to get_output()
	 * output is filtered so the return of get_output() doesn't need its own filter
	 *
	 * @return   string
	 * @since    8.0.0
	 */
	protected function get_output() {
		if ( 'llms_membership' !== get_post_type( get_the_ID() ) ) {
			return '';
		}

		ob_start();

		llms_template_instructors();

		return ob_get_clean();
	}

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


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()
  • get_output — Retrieve the actual content of the shortcode

Top ↑

Changelog Changelog

Changelog
Version Description
3.4.3 Unknown.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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