Core Class
View Source on Trac ↗
Core Class
WP_Theme_JSON_Data
class WP_Theme_JSON_Data
// Constructor: function Object() { [native code] } Class to provide access to update a theme.json structure.
Methods 4 methods
| Method / Return | Description |
|---|---|
| __construct() void | Constructor.
Parameters: $data: mixed, $origin: mixed |
| update_with() WP_Theme_JSON_Data | Updates the theme.json with the the given data.
Parameters: $new_data: mixed |
| get_data() array | Returns an array containing the underlying data |
| get_theme_json() WP_Theme_JSON | Returns theme JSON object. |
Properties
| Property / Type | Description |
|---|---|
| $theme_json mixed public | No description available. |
| $origin mixed public | No description available. |
Class Information
Source File
wp-includes/class-wp-theme-json-data.php
Advertisement