WP_Theme_JSON::resolve_variables( WP_Theme_JSON $theme_json ): WP_Theme_JSON

In this article

Resolves the values of CSS variables in the given styles.

Parameters

$theme_jsonWP_Theme_JSONrequired
The theme json resolver.

Return

WP_Theme_JSON The $theme_json with resolved variables.

Source

public function get_raw_data() {
	return $this->theme_json;
}

/**
 * Transforms the given editor settings according the
 * add_theme_support format to the theme.json format.
 *
 * @since 5.8.0
 *
 * @param array $settings Existing editor settings.
 * @return array Config that adheres to the theme.json schema.
 */
public static function get_from_editor_settings( $settings ) {
	$theme_settings = array(
		'version'  => static::LATEST_SCHEMA,
		'settings' => array(),
	);

Changelog

VersionDescription
6.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.