wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



translations_api_result › WordPress Filter Hooks

Seit4.0.0
Veraltetn/v
apply_filters( 'translations_api_result', $res, $type, $args )
Parameter: (3)
  • (array|WP_Error) $res { On success an associative array of translations, WP_Error on failure. @type array $translations { List of translations, each an array of data. @type array ...$0 { @type string $language Language code. @type string $version WordPress version. @type string $updated Date the translation was last updated, in MySQL datetime format. @type string $english_name English name of the language. @type string $native_name Native name of the language. @type string $package URL to download the translation package. @type string[] $iso Array of ISO language codes. @type array $strings Array of translated strings used in the installation process. } } }
    Erforderlich: Ja
  • (string) $type The type of translations being requested.
    Erforderlich: Ja
  • (object) $args Translation API arguments.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the Translation Installation API response results.





Quellcode

return apply_filters( 'translations_api_result', $res, $type, $args );