WP_Theme_JSON_Resolver::get_fields_to_translate()
Deprecated from version 5.9.0. It is no longer supported and can 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.
Return
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() WP Theme JSON Resolver::get fields to translate code WP 6.1.1
public static function get_fields_to_translate() { _deprecated_function( __METHOD__, '5.9.0' ); return array(); }