Settings & Options API

WordPress provides Settings API and Options API to create custom settings pages. Settings API provides benefits like visual consistency, robustness (future-proofing), and less work. Options API saves your settings options in the database.

Go through the Settings handbook page to learn the following topics.

Coding Exercise

Go through the Settings and Options API documentation and create a admin page to store the name of the user with the following requirements:

  • Create a group called “rt_options” to store your settings.
  • Create a section to contain the input text field.
  • Implement security measures against CSRF using nonces as well.