BSF_Core_Update::init()

Implement theme update logic.


Description


Source

File: admin/bsf-core/classes/class-bsf-core-update.php

		public static function init() {
			do_action( 'astra_update_before' );

			// Get auto saved version number.
			$saved_version = get_option( 'bsf-updater-version', false );

			// If equals then return.
			if ( version_compare( $saved_version, BSF_UPDATER_VERSION, '=' ) ) {
				return;
			}

			// // Update auto saved version number.
			update_option( 'bsf-updater-version', BSF_UPDATER_VERSION );

			do_action( 'astra_update_after' );
		}

Changelog

Changelog
Version Description
1.0.0 Introduced.

User Contributed Notes

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