W3cubDocs

/WordPress

WP_Theme_JSON_Resolver::get_fields_to_translate(): array

Returns a data structure used in theme.json translation.

Return

array An array of theme.json fields that are translatable and the keys that are translatable.

Source

public static function get_fields_to_translate() {
	_deprecated_function( __METHOD__, '5.9.0' );
	return array();
}

Changelog

Version Description
5.9.0 This method has been deprecated.
5.8.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_theme_json_resolver/get_fields_to_translate