Core Class
View Source on Trac ↗
Core Class
WP_Theme_JSON_Schema
class WP_Theme_JSON_Schema
// Constructor: function Object() { [native code] } Class that migrates a given theme.json structure to the latest schema.
Methods 6 methods
| Method / Return | Description |
|---|---|
| migrate() array | Function that migrates a given theme.json structure to the last version.
Parameters: $theme_json: mixed, $origin: mixed |
| migrate_v1_to_v2() array | Removes the custom prefixes for a few properties
Parameters: $old: mixed |
| migrate_v2_to_v3() array | Migrates from v2 to v3.
Parameters: $old: mixed, $origin: mixed |
| rename_paths() array | Processes the settings subtree.
Parameters: $settings: mixed, $paths_to_rename: mixed |
| rename_settings() void | Processes a settings array, renaming or moving properties.
Parameters: $settings: mixed, $paths_to_rename: mixed |
| unset_setting_by_path() void | Removes a property from within the provided settings by its path.
Parameters: $settings: mixed, $path: mixed |
Class Information
Since Version
5.9.0
Source File
wp-includes/class-wp-theme-json-schema.php
Advertisement