typisttech / sunny

Automatically purge Cloudflare cache, including cache everything rules.

Home Page:https://typist.tech/projects/sunny

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hide Cloudflare email, api key and zone id if set via constants

tangrufus opened this issue · comments

@tangrufus any chance this can be revisited?

Although undocumented, you can now set Cloudflare email, api key and zone id via constants:

define('SUNNY_CLOUDFLARE_EMAIL', 'you@example.com');
define('SUNNY_CLOUDFLARE_API_KEY', 'aabbcc');
define('SUNNY_CLOUDFLARE_ZONE_ID', 'xxyyzz');

Once you defined the constants, the settings page on wp-admin becomes useless.
You can hide it the settings page by using remove_submenu_page or remove_menu_page. (This part won't be added into Sunny)