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

	public function install( $recreate = false ) {

		$installed = array();

		foreach ( array_keys( $this->get_locations() ) as $location ) {
			$installed[ $location ] = $this->create( $location, $recreate );
		}

		return $installed;

	}


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.