Get Theme Option
This one is for getting a theme option by the option name. The endpoint is "get/themeOption/{optionName}
". It returns the full entry for the option.
Example:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let optionName = '...' | |
fetch(`www.mysite.com/api/get/themeOption/${optionName}`) | |
.then((blob) => { | |
return blob.json() | |
}) | |
.then((data) => { | |
// This will be an array of the theme option entry (ID, name, value) | |
console.log(data.content) | |
}) |