alleyinteractive / apple-news

The Publish to Apple News plugin enables your WordPress blog content to be published to your Apple News channel.
https://wordpress.org/plugins/publish-to-apple-news/
GNU General Public License v3.0
153 stars 71 forks source link

Load theme settings from a WordPress filter or or a version-controlled file #1119

Open benlk opened 4 months ago

benlk commented 4 months ago

Description

I would like to version-control my Apple News Theme. Two options are equally appealing:

  1. Use a filter to specify a .json file to load from a path
  2. Use a filter to specify a configuration object.

In either case, if the filter is used, then the settings page should show all theme-configuration input fields as disabled.

Use Case

The reason for this is twofold:

  1. To make it easier to test and ship changes to Apple News themes in a version-controlled fashion
  2. To automate theme choice by environment, so that in development environments, I can specify a theme variation that doesn't require the fonts that are only available to published production articles viewed through the Apple News service.