WP_Theme_JSON_Resolver::get_fields_to_translatepublic staticWP 5.8.0

Deprecated since 5.9.0. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.

Returns a data structure used in theme.json translation.

Method of the class: WP_Theme_JSON_Resolver{}

No Hooks.

Returns

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

Usage

$result = WP_Theme_JSON_Resolver::get_fields_to_translate();

Changelog

Since 5.8.0 Introduced.
Deprecated since 5.9.0

WP_Theme_JSON_Resolver::get_fields_to_translate() code WP 7.0

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