ACF
Updater::refresh_plugins_transient
Deletes cached ACF plugin update transients and allows a fresh lookup.
Метод класса: Updater{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Updater = new Updater(); $Updater->refresh_plugins_transient( $id );
- $id(строка|false)
- The plugin ID to clear specific plugin info transient. If provided, will delete the
'acf_plugin_info_{id}'transient.
По умолчанию:false
Список изменений
| С версии 5.5.10 | Введена. |
Код Updater::refresh_plugins_transient() Updater::refresh plugins transient ACF 6.8.8
public function refresh_plugins_transient( $id = false ) {
delete_transient( 'acf_plugin_updates' );
if ( ! empty( $id ) && is_string( $id ) ) {
delete_transient( 'acf_plugin_info_' . $id );
}
}