wp-includes/class-wp-theme-json-data.php:56Updates the theme.json with the the given data.
$new_dataarrayWP_Theme_JSON_Data public function update_with( $new_data ) { $this->theme_json->merge( new WP_Theme_JSON( $new_data, $this->origin ) ); return $this; }Introduced in 6.1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/class-wp-theme-json-data.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.