LLMS_DB_Upgrader::update()

Start the update


Description Description

If autoupdating is possible, will enqueue and dispatch the bg updater. Otherwise it will show the update pending notice which will prompt an admin to manually start the update.


Top ↑

Return Return

(boolean) Returns false if there are no updates to run and true otherwise.


Top ↑

Source Source

File: includes/class-llms-db-ugrader.php

	public function update() {

		if ( ! $this->has_required_updates() ) {
			return false;
		}

		// Auto update if it can.
		if ( $this->can_auto_update() ) {
			$this->enqueue_updates();
		} else {
			$this->show_notice_pending();
		}

		return true;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
5.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.