Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

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

Closed
tangrufus opened this issue Apr 4, 2017 · 2 comments
Closed
Labels

Comments

@tangrufus
Copy link
Member

tangrufus commented Apr 4, 2017

@fagiani
Copy link

fagiani commented Sep 22, 2018

@tangrufus any chance this can be revisited?

@tangrufus
Copy link
Member Author

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

define('SUNNY_CLOUDFLARE_EMAIL', '[email protected]');
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)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants