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_Post_Types::get_template( string $post_type )

Retrieves the block template for use in post type registration.

Parameters Parameters


(string) (Required) The post type.

Top ↑

Return Return

(array|null) Returns the block template array or null if no template is defined for the post type.

Top ↑

Source Source

File: includes/

	private static function get_template( $post_type ) {

		if ( empty( self::$templates ) ) {
			self::$templates = require LLMS_PLUGIN_DIR . 'includes/schemas/llms-block-templates.php';

		return self::$templates[ $post_type ] ?? null;


Top ↑

Changelog Changelog

Version Description
6.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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