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_voucher_block()
Retrieve block for the voucher row.
Contents
Return Return
(array)
Source Source
File: includes/forms/class-llms-form-templates.php
'id' => 'llms_voucher', 'label' => __( 'Have a voucher?', 'lifterlms' ), 'placeholder' => __( 'Voucher Code', 'lifterlms' ), 'required' => ( 'required' === $option ), 'toggleable' => true, 'data_store' => false, 'data_store_key' => false, ), 'innerContent' => array(), ); } /** * Prepares block attributes for a given reusable block * * This method loads a reusable block from the blocks schema and attempts to locate a user information field * for the given field block from the user information fields schema. * * The field is matched by the block's "id" attribute which should match a user information field's "name" attribute. * * When a match is found, the information field data is merged into the block data and the settings are converted from field settings * to block attributes. *
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 5.0.0 | Introduced. |