async_update_translation

过滤钩子


apply_filters( 'async_update_translation', $update, $language_update )
参数
  • (bool)
    $update
    Whether to update.
    Required: 是
  • (object)
    $language_update
    The update offer.
    Required: 是
定义位置
  • wp-admin/includes/class-language-pack-upgrader.php
    , line 81
引入
4.0.0
弃用
–

Filters whether to asynchronously update translation for core, a plugin, or a theme.

$update = apply_filters( 'async_update_translation', $update, $language_update );