O'Reilly logo

WordPress Plugin Development Cookbook by Yannick Lefebvre

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Rendering the admin page contents using the Settings API

Starting from version 2.7, WordPress introduced a set of functions referred to as the Settings API that can be used to automate the creation of complex configuration pages. While the work required to put this rendering technique in place is a bit overkill for plugins that only have a handful of options, it can definitively be useful if you are dealing with tens or hundreds of configuration fields, simplifying the task of writing out HTML code for every single item to a single function call. It also automates the task of processing and storing plugin configuration data.

This recipe explains how to specify the contents of a configuration page using the Settings API and how to provide rendering ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required