acf_wp_upgrade_550_termmeta()ACF 5.7.4

When the database is updated to support term meta, migrate ACF term meta data across.

No Hooks.

Returns

void. Nothing (null).

Usage

acf_wp_upgrade_550_termmeta( $wp_db_version, $wp_current_db_version );
$wp_db_version(string) (required)
The new $wp_db_version.
$wp_current_db_version(string) (required)
The old (current) $wp_db_version.

Changelog

Since 5.7.4 Introduced.

acf_wp_upgrade_550_termmeta() code ACF 6.8.8

function acf_wp_upgrade_550_termmeta( $wp_db_version, $wp_current_db_version ) {
	if ( $wp_db_version >= 34370 && $wp_current_db_version < 34370 ) {
		if ( acf_version_compare( acf_get_db_version(), '>', '5.5.0' ) ) {
			acf_upgrade_550_termmeta();
		}
	}
}