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.


Top ↑

Return Return

(array)


Top ↑

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;

	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.7.0
1.11.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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