ACF

Updater::get_no_updatepublicACF 6.2.1

Checks if an update is available, but can't be updated to.

Method of the class: Updater{}

No Hooks.

Returns

Array|false.

Usage

$Updater = new Updater();
$Updater->get_no_update( $basename, $force_check );
$basename(string)
The plugin basename.
Default: ''
$force_check(true|false)
Bypasses cached result.
Default: false

Changelog

Since 6.2.1 Introduced.

Updater::get_no_update() code ACF 6.8.8

public function get_no_update( $basename = '', $force_check = false ) {
	// get updates.
	$updates = $this->get_plugin_updates( $force_check );

	// check for and return update.
	if ( is_array( $updates ) && isset( $updates['no_update'][ $basename ] ) ) {
		return $updates['no_update'][ $basename ];
	}

	return false;
}