Theme Options for WordPress Themes
Auch wenn ich schon länger nicht mehr ernsthaft an WordPress Themes gearbeitet habe ist dieses längliche Posting von Chip Bennett ganz spannend:
This tutorial will attempt to provide examples of current (as of the pending release of WordPress 3.1) best-practice implementation, not merely of the Settings API, but of Theme Options implementation as a whole, including:
- Registering options in the database as a single options array
- Initializing default options
- Creating a single Theme Settings page (with tabs)
- Defining settings page sections and fields
- Validating and white-listing user-input form data
- Adding Settings Page contextual help
- Enqueueing custom CSS for the Settings page
- Implementing settings in the Theme template files
- Enqueueing front-end CSS

