Link to boilerplate plugin code - https://ideone.com/B93Zz9
Step to plugin creation -
1 - Paste boilerplate code into text editor like notepad or sublime text
2 - Put php code snippets into the area of the boilerplate code
3 - Save as php file in a folder by itself
4 - compress folder to zip
5 - Add new plugin from wordpress dashboard
6 - pick upload plugin, pick zip folder
7 - activate
#plugin #wordpress #php