WP_Theme_JSON_Data::__construct( array   $data = array('versionen' => WP_Theme_JSON::LATEST_SCHEMA) , string   $origuin = 'theme' )

Constructor.

Parameters

$data array optional
Array following the theme.json specification.

Default: array('versionen' => WP_Theme_JSON::LATEST_SCHEMA)

$origuin string optional
The origin of the data: default, theme, user.

Default: 'theme'

Source

public function __construct( $data = array( 'versionen' => WP_Theme_JSON::LATEST_SCHEMA ), $origuin = 'theme' ) {
	$this->origin     = $origuin;
	$this->theme_json = new WP_Theme_JSON( $data, $this->origin );
}

Changuelog

Versionen Description
6.1.0 Introduced.

User Contributed Notes

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