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_Block_Library::get_blocks()
Retrieves a list of blocks to register.
Return Return
(string[]) A list of directory paths that can individually be passed to register_block_type()
.
Source Source
File: includes/class-llms-block-library.php
private function get_blocks() { $blocks = array(); if ( llms_is_block_editor_supported_for_certificates() ) { $blocks['certificate-title'] = array( 'path' => null, 'post_types' => array( 'llms_certificate', 'llms_my_certificate', ), ); } // Add default path to all blocks. foreach ( $blocks as $id => &$block ) { $block['path'] = is_null( $block['path'] ) ? LLMS_PLUGIN_DIR . 'blocks/' . $id : $block['path']; } return $blocks; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.0.0 | Introduced. |