WordPress Plugin Skeleton

PromptIntermediateBuilding

A plugin that follows WordPress standards: a unique prefix, nonces and escaped output.

The prompt
Create the structure of a WordPress plugin named [name] with the prefix [prefix_]:
- A main file with the plugin header, and direct access blocked with defined('ABSPATH').
- A settings page that uses the Settings API with a nonce and current_user_can.
- Input sanitising (sanitize_*) and output escaping (esc_*).
- A REST route with a permission_callback.
- uninstall.php that deletes the plugin's options.
Follow the WordPress Plugin Handbook.