Creating A WordPress Settings Page Using the WordPress REST API

One of the many great uses for the WordPress REST API is improving your plugin or theme settings screens. Once you add custom REST API endpoints, getting saved settings via AJAX and saving it via AJAX — IE with no additional page loads — is simpler. Using the WordPress REST API instead of admin-ajax is not only more performant but also lets WordPress core do most of the heavy lifting in terms of sanitization and validation. In this article, we will walk through each of the steps to create a settings form page and process that form using the WordPress … Continue reading Creating A WordPress Settings Page Using the WordPress REST API