Changeset 52645
- Timestamp:
- 01/27/2022 09:13:09 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/translation-install.php
r49927 r52645 15 15 * @param string $type Type of translations. Accepts 'plugins', 'themes', 'core'. 16 16 * @param array|object $args Translation API arguments. Optional. 17 * @return object|WP_Error On success an objectof translations, WP_Error on failure.17 * @return array|WP_Error On success an associative array of translations, WP_Error on failure. 18 18 */ 19 19 function translations_api( $type, $args = null ) { … … 30 30 * @since 4.0.0 31 31 * 32 * @param false| object $result The result object. Default false.33 * @param string 34 * @param object 32 * @param false|array $result The result array. Default false. 33 * @param string $type The type of translations being requested. 34 * @param object $args Translation API arguments. 35 35 */ 36 36 $res = apply_filters( 'translations_api', false, $type, $args ); … … 103 103 * @since 4.0.0 104 104 * 105 * @param object|WP_Error $res Response objector WP_Error.106 * @param string 107 * @param object 105 * @param array|WP_Error $res Response as an associative array or WP_Error. 106 * @param string $type The type of translations being requested. 107 * @param object $args Translation API arguments. 108 108 */ 109 109 return apply_filters( 'translations_api_result', $res, $type, $args );
Note: See TracChangeset
for help on using the changeset viewer.