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.


Retrieves a list of blocks to register.

Return Return

(string[]) A list of directory paths that can individually be passed to register_block_type().

Top ↑

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(

		// 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;


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.