This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Astra_Addon_Background_Updater::needs_db_update()

Is a DB update needed?


Description


Return

(boolean)


Source

File: classes/class-astra-addon-background-updater.php

		private function needs_db_update() {

			$updates = $this->get_db_update_callbacks();

			if ( empty( $updates ) ) {
				return false;
			}

			$customizer_options = get_option( 'astra-settings' );

			$addon_auto_version = ( isset( $customizer_options['astra-addon-auto-version'] ) && '' !== $customizer_options['astra-addon-auto-version'] ) ? $customizer_options['astra-addon-auto-version'] : null;

			return ! is_null( $addon_auto_version ) && version_compare( $addon_auto_version, max( array_keys( $updates ) ), '<' );
		}

Changelog

Changelog
Version Description
2.1.3 Introduced.


User Contributed Notes

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