async_update_translation filter-hookWP 4.0.0

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

Usage

add_filter( 'async_update_translation', 'wp_kama_async_update_translation_filter', 10, 2 );

/**
 * Function for `async_update_translation` filter-hook.
 * 
 * @param bool   $update          Whether to update.
 * @param object $language_update The update offer.
 *
 * @return bool
 */
function wp_kama_async_update_translation_filter( $update, $language_update ){

	// filter...
	return $update;
}
$update(true|false)
Whether to update.
$language_update(object)
The update offer.

Changelog

Since 4.0.0 Introduced.

Where the hook is called

Language_Pack_Upgrader::async_upgrade()
async_update_translation
wp-admin/includes/class-language-pack-upgrader.php 81
$update = apply_filters( 'async_update_translation', $update, $language_update );

Where the hook is used in WordPress

Usage not found.