August 2017
Beginner
412 pages
10h 30m
English
We're going to leave the document types plugin behind now, and create a new one--featuring the active use of the database. Let's create a simple plugin that stores all the words that visitors search for (when using the blog's search feature).
Overall, this plugin is very basic and doesn't require its own folder like the previous plugin that we worked on. That's why this whole plugin will be done inside one file--capture_searches_new.php. I'm calling the plugin Capture Searched Words New.
The database table structure for this plugin will be as follows. The table name is wp_searchedwords:
| Field | Type | Null | Key | Default | Extra |
| Id | INT | NOT NULL | PRI | - | auto_increment |
| Word | VARCHAR(255) |
Read now
Unlock full access