LLMS_Blocks_Post_Types::add_course_template( array $post_type )
Add an editor template for courses
Parameters Parameters
- $post_type
-
(array) (Required) post type data.
Return Return
(array)
Source Source
File: libraries/lifterlms-blocks/includes/class-llms-blocks-post-types.php
public function add_course_template( $post_type ) { $post_type['template'] = array( array( 'core/paragraph', 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; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |