wppaste
WordPress

apply_filters( 'translations_api', false|array $result, string $type, object $args )

Since
4.0.0
Allows a plugin to override the WordPress.org Translation Installation API entirely.

Parameters

$resultfalse|array
The result array. Default false.
$typestring
The type of translations being requested.
$argsobject
Translation API arguments.

Where this hook fires · 1

  • wp-admin/includes/translation-install.php:50translations_api()

Source code

	 * @since 4.0.0	 *	 * @param false|array $result The result array. Default false.	 * @param string      $type   The type of translations being requested.	 * @param object      $args   Translation API arguments.	 */	$res = apply_filters( 'translations_api', false, $type, $args ); 	if ( false === $res ) {		$url      = 'http://api.wordpress.org/translations/' . $type . '/1.0/';		$http_url = $url;		$ssl      = wp_http_supports( array( 'ssl' ) );		if ( $ssl ) {

Changelog

Introduced in 4.0.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.