允许插件完全覆盖WordPress.org Translation Installation API。
原型
apply_filters( 'translations_api', bool|array $result, string $type, object $args )
参数
$result
(bool|array)
结果对象。默认为false。
$type
(string)
要求的翻译类型。
$args
(object)
翻译API参数。
源文件
路径:wp-admin/includes/translation-install.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/translations_api/