WP_Theme_JSON::get_settings(): array

In this article

Returns the existing settings for each block.

Description

Example:

{
  'root': {
    'color': {
      'custom': true
    }
  },
  'core/paragraph': {
    'spacing': {
      'customPadding': true
    }
  }
}

Return

array Settings per block.

Source

	$schema_settings_blocks[ $block ]           = static::VALID_SETTINGS;
	$schema_styles_blocks[ $block ]             = $styles_non_top_level;
	$schema_styles_blocks[ $block ]['elements'] = $schema_styles_elements;
}

$block_style_variation_styles             = static::VALID_STYLES;
$block_style_variation_styles['blocks']   = $schema_styles_blocks;

Changelog

VersionDescription
5.8.0Introduced.

User Contributed Notes

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