acf_get_full_version()ACF 5.5.0

acf_get_full_version

This function will remove any '-beta1' or '-RC1' strings from a version

No Hooks.

Returns

(String).

Usage

acf_get_full_version( $version );
$version
.
Default: '1'

Changelog

Since 5.5.0 Introduced.

acf_get_full_version() code ACF 6.8.8

function acf_get_full_version( $version = '1' ) {

	// remove '-beta1' or '-RC1'
	if ( $pos = strpos( $version, '-' ) ) {
		$version = substr( $version, 0, $pos );
	}

	// return
	return $version;
}