August 2017
Beginner
412 pages
10h 30m
English
We now need a familiar-looking function that adds a management page to the Admin menu. In this case, we use add_management_page() instead of add_submenu_page() because this plugin is more of a tool than something that needs settings:
function modify_menu_for_searchedwords() {
$page = add_management_page(
"Capture Searched Words",
"Capture Searched Words",
'manage_options',
'capture_searches_new',
'searchedwords_page'
);
}
For this plugin, we're not going to load any custom styling or CSS files. The topic here is to just showcase how database connection can be done, so we're going to keep everything else ultra-simple and minimal. Therefore, the only thing we have to do at this point is to write a function that ...
Read now
Unlock full access