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
- $post_type
-
(string) (Required) The post type.
Return Return
(array|null) Returns the block template array or null if no template is defined for the post type.
Source Source
File: includes/class.llms.post-types.php
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; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.0.0 | Introduced. |