Warning: This method has been deprecated.
WP_Theme_JSON_Resolver::get_fields_to_translate() WordPress Method
The WP_Theme_JSON_Resolver::get_fields_to_translate() method is used to get an array of fields that need to be translated when a WordPress theme is being updated. This is useful for ensuring that all the right fields are updated when a new version of a theme is released.
WP_Theme_JSON_Resolver::get_fields_to_translate() #
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
File: wp-includes/class-wp-theme-json-resolver.php
public static function get_fields_to_translate() { _deprecated_function( __METHOD__, '5.9.0' ); return array(); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.9.0 | This method has been deprecated. |
5.8.0 | Introduced. |