Skip to content

Ultra semplified Wordpress legacy plugin scheme/bolerplate whit a CRUD operation for save and manipulate data in db.

License

Notifications You must be signed in to change notification settings

wp-collection/wp-plugin-flat-scheme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Do you like this project? Good! Remember to encourage us in this: click on the ★ above this page and follow


wp-plugin-flat-scheme

An example pattern of "how to build a wordpress plugin and how to save its options in the wordpress database"


info:

The plugin is a 3 main file scheme.
The first "index.php" generates the link and the page on the wordpress menu;
The second file "contents.php" is the mainpage, the exemple form and logic inside the page;
Last file "wpdblib.php" is the functions methods for all actions doed in page content.

All actions is commented for easy undestand what and how it does all.

How to approach:


  0. make a backup of plugins folder;
  1. copy page in plugins folder of wordpress;
  2. active the plugin and find it in menu "settings > hello plugin scheme";
  3. test the page, make and save data... it work? ok, let's go!;
  4. study the schemas and read all comments for understand "how and what";
  5. change name "the-plugin-scheme" in folder and function;
  6. enjoy.. mod what you wont.

About

Ultra semplified Wordpress legacy plugin scheme/bolerplate whit a CRUD operation for save and manipulate data in db.

Topics

Resources

License

Stars

Watchers

Forks

Languages