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_Form_Templates::get_reusable_block( string $field_id )
Retrieves a core/block WP_Block array for a given default/core field
Description Description
This method will attempt to use an existing wp_block for the given field id if it exists, and when not found creates a new one.
Parameters Parameters
- $field_id
-
(string) (Required) The field's identifier as found in the block schema list returned by LLMS_Form_Templates::get_reusable_block_schema().
Return Return
(array) A WP_Block definition array.
Source Source
File: includes/forms/class-llms-form-templates.php
); } /** * Retrieves the schema definition for a default/core reusable block * * @since 5.0.0 * * @param string $field_id The field's identifier as found in the block schema list returned by LLMS_Form_Templates::get_reusable_block_schema(). * @return array The block definition schema. This is a WP_Block array definition but missing some data that is automatically populated before serialization.
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 5.0.0 | Introduced. |