LLMS_Blocks_Post_Types::add_course_template( array $post_type )

Add an editor template for courses

Parameters Parameters


(array) (Required) post type data.

Top ↑

Return Return


Top ↑

Source Source

File: libraries/lifterlms-blocks/includes/class-llms-blocks-post-types.php

	public function add_course_template( $post_type ) {

		$post_type['template'] = array(
					'placeholder' => __( 'Add a short description of your course visible to all visitors...', 'lifterlms' ),
			array( 'llms/course-information' ),
			array( 'llms/instructors' ),
			array( 'llms/pricing-table' ),
			array( 'llms/course-progress' ),
			array( 'llms/course-continue-button' ),
			array( 'llms/course-syllabus' ),

		return $post_type;


Top ↑

Changelog Changelog

Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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