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.


Top ↑

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();
	}


Top ↑

Changelog

Changelog
VersionDescription
5.9.0This method has been deprecated.
5.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.