Wonderflux options API
Closed this issue · 1 comments
You can remove and/or control access to all theme options:
Define your own user access to Wonderflux admin menus
(user will still need the capability 'manage_options'):
- For multiple user ID's (1 and 4)
define('WF_ADMIN_ACCESS', serialize(array('1','4'))); - For single user ID (1)
define('WF_ADMIN_ACCESS', serialize(array('1'))); - For a single WordPress role (can use custom defined roles too)
define('WF_ADMIN_ACCESS', 'administrator'); - To remove the menus for all users
define('WF_ADMIN_ACCESS', 'none');
However, it would be useful if there was a way for developers to interact and even include their own controls - making custom options pages quickly and easily that interact with Wonderflux.
I may also be considering moving a-lot of the layout options to the Theme Customizer to enable front-end editing, but there will still be other options that don't really work well and still need to be in an options page.
Future development could include:
- Allow filtering of admin display values, so they can be changed to suit client
- Create new function(s) to be used in child themes to allow easy adding of custom theme controls on Wonderflux theme pages (new hooks/settings api)
- Capabilities to interact with individual theme pages and options, allowing each to be configured by same fine-grain control as above (continue to use constants as above or create options page?)
No real need for this - Wondeflux can fully translated if text strings need to be changed, and the WordPress Customiser API is so powerful now that theme developers should just build their own (which is easy to do!)