WP_Theme_JSON_Resolver::get_core_data()

Return core’s origin config.


Return Return

(WP_Theme_JSON) Entity that holds core data.


Top ↑

Source Source

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

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

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

		return self::$core;
	}


Top ↑

Changelog Changelog

Changelog
Version Description
5.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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