acf_wp_upgrade_550_termmeta()
acf_wp_upgrade_550_termmeta
When the database is updated to support term meta, migrate ACF term meta data across.
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
acf_wp_upgrade_550_termmeta( $wp_db_version, $wp_current_db_version );
- $wp_db_version(строка) (обязательный)
- The new $wp_db_version.
- $wp_current_db_version(строка) (обязательный)
- The old (current) $wp_db_version.
Список изменений
С версии 5.7.4 | Введена. |
Код acf_wp_upgrade_550_termmeta() acf wp upgrade 550 termmeta ACF 6.0.4
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(); } } }