Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

LLMS_Blocks_Migrate::get_template( string $post_type, boolean $merge_deprecated_versions = false )

Retrieve the block template by post type.


Description Description


Parameters Parameters

$post_type

(Required) WP post type.

$merge_deprecated_versions

(Optional) Whether or not getting the deprecated blocks merged, useful when removing templates. Default false.

Default value: false


Top ↑

Return Return

(string)


Top ↑

Source Source

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


			

Top ↑

Changelog Changelog

Changelog
Version Description
1.9.1 Fix course progress block.
1.8.0 Updated course progress shortcode and added the $merge_deprecated_versions param.
1.7.0 Add membership template.
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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