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
Return Return
(WP_Post[]) Array of created posts. Array key is the location id and array value is the WP_Post object.
Source Source
File: includes/forms/class-llms-forms.php
* @param bool $recreate Whether or not to recreate an existing form. This is passed to `LLMS_Forms::create()`. * @return WP_Post[] Array of created posts. Array key is the location id and array value is the WP_Post object. */ public function install( $recreate = false ) { $installed = array(); foreach ( array_keys( $this->get_locations() ) as $location ) { $installed[ $location ] = $this->create( $location, $recreate ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |