LLMS_Course::__construct( string|int|LLMS_Post_Model|WP_Post $model, array $args = array() )

Constructor for this class and the traits it uses.


Parameters Parameters

$model

(string|int|LLMS_Post_Model|WP_Post) (Required) 'new', WP post id, instance of an extending class, instance of WP_Post.

$args

(array) (Optional) Args to create the post, only applies when $model is 'new'.

Default value: array()


Top ↑

Source Source

File: includes/models/model.llms.course.php

	public function __construct( $model, $args = array() ) {

		$this->construct_audio_video_embed();
		$this->construct_sales_page();
		parent::__construct( $model, $args );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
5.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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