Skip to main content
WP HealthKit

Options API

WordPress database API for storing and retrieving site-wide settings using key-value pairs.

How it works

WordPress database API for storing and retrieving site-wide settings using key-value pairs.

In WordPress

Always sanitize before update_option() and escape after get_option(). Register settings with register_setting() for automatic sanitization.

Related terms

WP HealthKit checks for Options API-related vulnerabilities automatically

Run a Free Audit
What Is Options API? — WordPress Security Glossary | WP HealthKit