LLMS_Forms::create( string $location_id, bool $recreate = false )

Create a form for a given location with the provided data.


Description Description


Parameters Parameters

$location_id

(Required) Location id.

$recreate

(Optional) If true and the form already exists, will recreate the existing form using the existing form's id.

Default value: false


Top ↑

Return Return

(int|false) Returns the created/update form post ID on success. If the location doesn't exist, returns false. If the form already exists and $recreate is false will return false.


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.