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
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
.
Source Source
File: includes/forms/class-llms-forms.php
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |