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_Forms::prepare_field_for_free_enroll_form( array $attrs, array $block )

Modifies a field for usage in the “free enrollment” checkout form


Description Description

If the block is not visible (according to LLMS block-level visibility settings) it will return an empty array (signaling the field to be removed).

Otherwise the block will be converted to a hidden field.

This method is a filter callback and is intended for internal use only.

Backwards incompatible changes and/or method removal may occur without notice.


Parameters Parameters

$attrs

(Required) LLMS_Form_Field settings array for the field.

$block

(Required) WP_Block settings array.


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/forms/class-llms-forms.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.