August 2017
Beginner
412 pages
10h 30m
English
The management page that we will create is going to add an option to wp-admin. This uses the existing space in the WordPress options table in the database, so no database modifications are required. The name of the new option has to be unique. I'm going to call the new option doctype_styles_new_supportedtypes.
There are six functions we need to add to the plugin so that an admin page can be added to wp-admin. Let's take a look at the first two:
function set_supportedtypes_options() {
add_option("doctype_styles_new_supportedtypes",
"pdf,doc,mp3,zip");
}
Read now
Unlock full access