ActionScheduler_Versions::latest_version_callbackpublicWC 1.0

Get callback for latest registered version.

Method of the class: ActionScheduler_Versions{}

No Hooks.

Returns

null. Nothing (null).

Usage

$ActionScheduler_Versions = new ActionScheduler_Versions();
$ActionScheduler_Versions->latest_version_callback();

ActionScheduler_Versions::latest_version_callback() code WC 9.9.5

public function latest_version_callback() {
	$latest = $this->latest_version();

	if ( empty( $latest ) || ! isset( $this->versions[ $latest ] ) ) {
		return '__return_null';
	}

	return $this->versions[ $latest ];
}