LLMS_Forms::install( bool $recreate = false )

Installation function to install core forms.


Parameters Parameters

$recreate

(bool) (Optional) Whether or not to recreate an existing form. This is passed to LLMS_Forms::create().

Default value: false


Top ↑

Return Return

(WP_Post[]) Array of created posts. Array key is the location id and array value is the WP_Post object.


Top ↑

Source Source

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

	 * Loads reusable blocks into a block list.
	 *
	 * A reusable block contains a reference to the block post, e.g. `<!-- wp:block {"ref":2198} /-->`,
	 * which will be loaded during rendering.
	 *
	 * Dereferencing the reusable blocks allows the entire block list to be reviewed and to validate all form fields.
	 * This function will replace each reusable block with the parsed blocks from its reference post.
	 *
	 * @since 5.0.0
	 * @since 5.1.0 Access turned to public.
	 *

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.