LLMS_Blocks_Post_Types::add_membership_template( array $post_type )
Add an editor template for memberships.
Parameters Parameters
- $post_type
-
(array) (Required) Post type registration data.
Return Return
(array)
Source Source
File: libraries/lifterlms-blocks/includes/class-llms-blocks-post-types.php
public function add_membership_template( $post_type ) { $post_type['template'] = array( array( 'core/paragraph', array( 'placeholder' => __( 'Add a short description of your membership visible to all visitors...', 'lifterlms' ), ), ), array( 'llms/instructors' ), array( 'llms/pricing-table' ), ); return $post_type; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.7.0 | |
1.11.0 | Introduced. |