disable-blog icon indicating copy to clipboard operation
disable-blog copied to clipboard

Settings Page

Open joshuadavidnelson opened this issue 2 years ago • 5 comments

Create a Settings page, and the ability to toggle it's own visibility in the admin. Use existing filters (and possibly add new ones) to facilitate the control of specific features from the settings page.

joshuadavidnelson avatar Apr 14 '22 02:04 joshuadavidnelson

Have you found any possible setting APIs to use for the plugin? For my variant, I used this repo:

https://github.com/tareq1988/wordpress-settings-api-class

But it's been 6+ years since it has been updated. So maybe it's not the most viable one to use and stay compatible with the latest version of WordPress. With a quick search, I see there are some other alternatives worth trying out that are more up-to-date:

https://github.com/search?o=desc&q=wordpress+settings+api&s=updated&type=Repositories https://github.com/topics/wordpress-settings-api

ethanraevan avatar Apr 18 '22 13:04 ethanraevan

Yea, I have started building some of this out using WordPress Settings Framework, I'm hoping to get a basic settings page in the next release. I'm also mapping out the Disable Blogging features towards the goal of providing a migration path for users to Disable Blog. More on that soon, I hope!

joshuadavidnelson avatar Apr 18 '22 13:04 joshuadavidnelson

Some follow up on this project: I've put together a proof of concept for a Settings page using a slightly modified version of the WordPress Settings Framework, in the feature/settings-page branch.

I'm still working on this but have made good headway in this first push. Here's my task list from here:

  • Refactor code to follow settings structure (e.g. "disable blog" functionality grouped separately from "disable author archives" etc).
  • Add relevant links in settings strings (e.g. link to "Settings > Reading").
  • Test in Multisite environment and WP versions supported.
  • Add logic to disable settings fields if filters are being used to override them, throw a notice on the settings page.
  • Add simplified method for users to filter settings.
  • Move "blog" submenu item up to below "General" in settings page.
  • Roadmap future settings for core filters.
  • Add translators: to all strings.
  • Update Readme docs:
    • Remove the long list and replace with more concise language about functionality.
    • New settings page screenshots.
    • Expand FAQ.
    • Provide documentation for update.

I'm aiming for this to be done as part of the v0.6.0 and mapping out the roadmap for 0.7.0 being the release fully supporting Disable Blogging features. I've expanded the milestones as a rough roadmap between here an a v1.0.0.

joshuadavidnelson avatar Sep 17 '22 16:09 joshuadavidnelson

That's great @joshuadavidnelson, lemme know if there's a way I can help with testing.

ethanraevan avatar Sep 19 '22 16:09 ethanraevan

@ethanosullivan Thanks! I'll reach out once it's ready. I would love review/input before finalizing the release.

joshuadavidnelson avatar Sep 22 '22 18:09 joshuadavidnelson