LLMS_Forms
LLMS_Forms class
Description Description
Source Source
File: includes/forms/class-llms-forms.php
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |
Methods Methods
- __construct — Private Constructor
- are_requirements_met — Determines if the WP core requirements are met
- are_usernames_enabled — Determine if usernames are enabled on the site.
- block_to_field_settings — Converts a block to settings understandable by `llms_form_field()`
- cascade_visibility_attrs — Cascade all llms_visibility attributes down into inner blocks.
- convert_settings_format — Converts field settings formats
- convert_settings_to_block_attrs — Converts an array of LLMS_Form_Field settings to a block attributes array
- create — Create a form for a given location with the provided data.
- get_additional_fields — Retrieve additional fields added to the form programmatically.
- get_additional_fields_html — Retrieve HTML for the form's additional programmatically-added fields.
- get_capability — Retrieve the form management user capability.
- get_custom_field_block_markup — Retrieve the HTML markup for a custom form field block
- get_field_blocks — Pull LifterLMS Form Field blocks from an array of parsed WP Blocks.
- get_field_by — Retrieve a field item from a list of fields by a key/value pair.
- get_field_names — Returns a list of field names used by LifterLMS forms
- get_fields_settings_from_blocks — Retrieve an array of LLMS_Form_Fields settings arrays from an array of blocks
- get_form_blocks — Retrieve an array of parsed blocks for the form at a given location.
- get_form_fields — Retrieve an array of LLMS_Form_Fields settings arrays for the form at a given location.
- get_form_html — Retrieve the rendered HTML for the form at a given location.
- get_form_post — Retrieve the WP Post for the form at a given location.
- get_free_enroll_form_fields — Retrieve an array of form fields used for the "free enrollment" form
- get_free_enroll_form_html — Retrieve the HTML of form fields used for the "free enrollment" form
- get_locations — Retrieve information on all the available form locations.
- get_post_type — Retrieve the forms post type name.
- install — Installation function to install core forms.
- instance — Get Main Singleton Instance.
- is_block_visible — Determine if a block is visible based on LifterLMS Visibility Settings.
- is_location_valid — Determines if a location is a valid & registered form location
- load_reusable_blocks — Loads reusable blocks into a block list
- maybe_load_preview — Load form autosaves when previewing a form
- parse_blocks — Parse the post_content of a form into a list of WP_Block arrays.
- prepare_field_for_free_enroll_form — Modifies a field for usage in the "free enrollment" checkout form
- render_field_block — Render form field blocks.