translations_api

SummerySummery

Retrieve translations from WordPress Translation API.

Syntax

translations_api( string $type, array|object $args = null )

ParametersParameters

$type

(string) (Required) Type of translations. Accepts 'plugins', 'themes', 'core'.

$args

(array|object) (Optional) Translation API arguments. Optional.

Default value: null

ReturnReturn

(object|WP_Error) On success an object of translations, WP_Error on failure.

SourceSource

File: wp-admin/includes/translation-install.php


			

ChangelogChangelog

Changelog
Version Description
4.0.0 Introduced.
Scroll to Top