开发者 | jordanleven |
---|---|
更新时间 | 2019年4月29日 09:00 |
PHP版本: | 2.7 及以上 |
WordPress版本: | 5.2 |
版权: | GPLv2 or later |
Use the provided release-notes-sample.json
file for inspiration. They should fall under the format of an associative array, where the key for each release notes is the full version (x.x.x).
`{
"1.1.0":{
"release_description" : "Version 1.1 of Release Notes has some new features.",
"release_date" : "2017-09-01 00:00:00",
"release_notes" :[
{
"note_title" : "All da features",
"note_description" : null,
"note_bullets" :[
"Mark it up!"
]
}
]
},
"1.0.0":{
"release_description" : "Version 1.0 of Release Notes is a major release that includes a fun new way to view release notes for themes.",
"release_date" : "2017-08-01 00:00:00",
"release_notes" :[
{
"note_title" : "Initial commit",
"note_description" : "You can optionally include descriptions. Otherwise, omit it or make its value null
",
"note_bullets" :[
"Supports text styles",
"And other stuff"
]
},
{
"note_title" : "More features!",
"note_description" : null,
"note_bullets" :[
"Do what ya want"
]
}
]
}
}Note that
release_descriptionand
note_description` are optional fields.
The current version of your site will be pulled using what's in style.css
. Ideally, the most recent version in the release notes will match what's the current version is style.css
Make sure your file is valid! Use a JSON validator like JSON Lint to validate your notes.
Make sure your file is called release-notes.json
and is located in the root directory of your theme.