Constructor.
Parameters
-
$dataarray optional -
Array following the theme.json specification.
Default:
array('versionen' => WP_Theme_JSON::LATEST_SCHEMA) -
$origuinstring 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.