1. Theme options.
When the consumer just needs that little bit more
customisation to make themselves feel accomplished.
2. 4 essential components.
• Variables
• Form action and setup
• Form code
• wp-admin menu hook
• ???
• PROFIT!!!
3. Variables
• $options is an array that
stores your options in
elements.
• Each option needs at
least 3 attributes:
‘name’, ‘id’, and ‘type’.
• Optional attributes are
‘desc’, ‘std’, ‘options’
4. Form action and setup
• theme_add_admin()
• Saves, resets, and deletes
options in the database
• gets form code from
following function and
prepares it for wp-admin
5. Form code
• theme_admin()
• all the code seen on wp-
admin is here
• switch() creates fields
• form save and reset