Settings Options Security

Use when building an options or settings page with the WordPress Settings API - register_setting, add_settings_field, settings_fields, an options.php form, or update_option / get_option on plugin data. Attaches a sanitize_callback to every setting, gates the page with manage_options, relies on Settings API nonce handling, and escapes options on output. Prevents stored XSS and unauthorized option writes.

wpultimatesecurity Updated 56 repo stars

File contents

wpultimatesecurity/WordPress-Security-Skills commit 2940140d59

Frequently asked questions

npx get-skill add wpultimatesecurity/settings-options-security