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
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | 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. |