Theme Options Video Tutorial
We will continue our exploration of administration customization and see how to add an option page on WordPress.
Adding an option panel is done in 2 steps:
- We declare the new parameters to manage thanks to the API Settings
- We save a new entry in the menu using the add_options_page, add_menu_page or add_submenu_page methods. And we generate a form page which will allow us to fill in the various information.
<input type = "text" name = "agency_date" value = "= esc_attr(get_option('agence_date')) ?>"class =" montheme_datepicker ">
Agency management
<? php
}
}
WordPress will be able to automatically manage data backup. It is not necessary here to call upon methods add_option
and update_option
.