Skip to content

schmitzoide/wordpress-modern-settings-api

Repository files navigation

WordPress Modern Settings API

Welcome to this project! Our main goal is to set up a new API to make it easier for developers and plugin authors to use react-enabled components inside their settings page.

React is a popular JavaScript library for building user interfaces. When used in conjunction with WordPress, it can provide several benefits. One benefit is that React allows for building highly interactive and dynamic user interfaces, which can enhance the user experience on a WordPress website. Additionally, React's ability to efficiently update and render components can improve the performance of a WordPress website, particularly when dealing with large amounts of data. React also allows for easy integration with other web technologies, such as APIs, which can enable additional functionality on a WordPress website.

With this feature plugin installed, developers can create a settings page using only react components, benefiting from the widely adopted and well-supported technology, making it easier to find developers with experience using it.

Getting Started

The solultion /proposal consists of two plugins: the feature plugin (this one) and an example plugin that developers would use to create their settings page.

You can start by cloning the project into the plugin's directory of a WordPress installation and by activating the plugin. Then you should run npm install and you're good to go to work on this plugin. Now for the registraion functions to be accessible via the example plugin or a plugin you want to develop, you need to run npm link on the feature plugin folder, and then run npm link wordpress-modern-settings-api on the example plugin folder for the registerSettingsPanel() function to be available.

Get Involved

We'd like for you to get involved and help us complete a list of suggested next steps, as this is a fairly young and ambitious project.

The short / midterm goals are to create exposed components inside the feature plugin that allow the developer to create consistent and easy to use interfaces, and to create on the example plugin the use cases for those components. All of that dealing with the logic behind accessing metadata, and other config values, the same way WooCommerce components are offered to be used by 3rd party extensions.

This is a short list of the next steps we suggest taking:

  • Review the whole PHP and JavaScript code and clean up as needed.
  • Review and revalidate the settings.json schema.
  • Test if there is support for multiple example plugins to run at the same time.
  • Add support for submenus.
  • Add a first component to the feature plugin that enables the creation of a form with some inputs and saves the values into metadata.

This is a basic first list, feel free to engage and suggest other steps.

Maintaned by Marcel Schmitz.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published