WP_Theme_JSON::compute_theme_vars( array $settings ): array

In this article

Given an array of settings, extracts the CSS Custom Properties for the custom values and adds them to the $declarations array following the format:

Description

array( ‘name’ => ‘property_name’, ‘value’ => ‘property_value, )

Parameters

$settingsarrayrequired
Settings to process.

Return

array The modified $declarations.

Source

 *   p.has-value-gradient-background {
 *     background: value;
 *   }
 *
 * @since 5.9.0
 *
 * @param array    $setting_nodes Nodes with settings.
 * @param string[] $origins       List of origins to process presets from.
 * @return string The new stylesheet.
 */
protected function get_preset_classes( $setting_nodes, $origins ) {
	$preset_rules = '';

Changelog

VersionDescription
5.8.0Introduced.

User Contributed Notes

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