translations_api filter-hook . WP 4.0.0
Allows a plugin to override the WordPress.org Translation Installation API entirely.
Usage
add_filter( 'translations_api', 'filter_function_name_7623', 10, 3 ); function filter_function_name_7623( $result, $type, $args ){ // filter... return $result; }
- $result(true/false/array)
- The result object.
Default: false - $type(string)
- The type of translations being requested.
- $args(object)
- Translation API arguments.
Changelog
Since 4.0.0 | Introduced. |
Where the hook is called
translations_api
wp-admin/includes/translation-install.php 36
$res = apply_filters( 'translations_api', false, $type, $args );