LLMS_DB_Upgrader::get_required_updates()

Retrieve a filtered list of updates as required by the specified DB version


Description Description

All updates greater than the specified version will be returned.


Top ↑

Return Return

(array[])


Top ↑

Source Source

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

	public function get_required_updates() {

		$db_version = $this->db_version;

		return array_filter(
			$this->get_updates(),
			function( $update_version ) use ( $db_version ) {
				return version_compare( $db_version, $update_version, '<' );
			},
			ARRAY_FILTER_USE_KEY
		);

	}


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.