LLMS_Block_Templates::configure_block_templates()
Configure block templates.
Contents
Return Return
(void)
Source Source
File: includes/class-llms-block-templates.php
public function configure_block_templates() {
$block_templates_config = array(
llms()->plugin_path() . '/templates/' . self::LLMS_BLOCK_TEMPLATES_DIRECTORY_NAME => array(
'slug_prefix' => self::LLMS_BLOCK_TEMPLATES_PREFIX,
'namespace' => self::LLMS_BLOCK_TEMPLATES_NAMESPACE,
'blocks_dir' => self::LLMS_BLOCK_TEMPLATES_DIRECTORY_NAME, // Relative to the plugin's templates directory.
'admin_blocks_l10n' => $this->block_editor_l10n(),
'template_titles' => $this->template_titles(),
),
);
/**
* Filters the block templates configuration.
*
* @since 5.8.0
*
* @param array $block_templates_config Block templates configuration array.
*/
$this->block_templates_config = apply_filters( 'llms_block_templates_config', $block_templates_config );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 5.8.0 | Introduced. |