W3cubDocs

/WordPress

WP_Theme_JSON::get_raw_data(): array

Returns the raw data.

Return

array Raw data.

Source

$block_gap_value = static::get_property_value( $this->theme_json, array( 'styles', 'spacing', 'blockGap' ) );
$css            .= ":where(.wp-site-blocks) > * { margin-block-start: $block_gap_value; margin-block-end: 0; }";
$css            .= ':where(.wp-site-blocks) > :first-child { margin-block-start: 0; }';

Changelog

Version Description
5.8.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_theme_json/get_raw_data