WP_Theme_JSON_Resolver::get_core_data()

Returns core’s origin config.


Return

(WP_Theme_JSON) Entity that holds core data.


Top ↑

Source

File: wp-includes/class-wp-theme-json-resolver.php

	public static function get_core_data() {
		if ( null !== static::$core ) {
			return static::$core;
		}

		$config       = static::read_json_file( __DIR__ . '/theme.json' );
		$config       = static::translate( $config );
		static::$core = new WP_Theme_JSON( $config, 'default' );

		return static::$core;
	}


Top ↑

Changelog

Changelog
Version Description
5.8.0 Introduced.

Top ↑

User Contributed Notes

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