wphooks.info - async_update_translation

async_update_translation

The hook occurs in the following file:

wp-admin/includes/class-language-pack-upgrader.php:
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
			$update = ! empty( $language_update->autoupdate );

			/**
			 * Filters whether to asynchronously update translation for core, a plugin, or a theme.
			 *
			 * @since 4.0.0
			 *
			 * @param bool   $update          Whether to update.
			 * @param object $language_update The update offer.
			 */
			$update = apply_filters( 'async_update_translation', $update, $language_update );

			if ( ! $update ) {
				unset( $language_updates[ $key ] );
			}
		}

		if ( empty( $language_updates ) ) {
			return;
		}