Skip to content

Latest commit

 

History

History
111 lines (84 loc) · 3.32 KB

ReadMe.md

File metadata and controls

111 lines (84 loc) · 3.32 KB

Plugin Development with Google Chart

This repo will help you to create a WordPress plugin using Custom Table, Google Chart and CRUD operations in Database. We will be adding our plugin into the wordpress admin bar.

We will be using WP_List_Table and display as a list. We will be working directly with database using "$wpdb".

Main Screenshot

Optional Text

Bootstrap 4 Form to communicate with Db

Optional Text

Software Compatible Version

  1. PHP 7
  2. MySQL 8
  3. WordPress 5.7.2

Required Software

  1. XAMPP (Download URL: https://www.apachefriends.org/index.html)
    • PHP (Include in XAMPP)
    • MySQL (Include in XAMPP)
  2. Code Editor (VisualStudio Code Preferred) (Download URL: https://code.visualstudio.com/)
  3. MySQL Workbench Community Edition (Download URL: https://dev.mysql.com/downloads/workbench/)
  4. WordPress 5.7.2 (Download URL: https://wordpress.org/download/)
  5. Internet Browser

Git Branches

  1. master
  2. 01-Plugin-Template
  3. 02-Google-Chart-Frontend
  4. 02-Google-Chart-Frontend-01
  5. 02-Google-Chart-MySQL-03
  6. 02-Google-Chart-PHP-02
  7. 03-Google-Chart-Db-01
  8. 04-Google-Chart-Adding_WP_List_Table-01
  9. 05-Google-Chart-WP_List_Table_Db
  10. 06-Google-Chart-BootStrap4
  11. 07-Google-Chart-CRUD
  12. 08-Google-Chart-Plugin_Activate_Deactivate

Useful Git Commands

To see the remote branches:
$ git branch -r
$ git checkout -b <gitBranch_name>


----------------------------------------------------------------------------------------------------------

Checking branches on remote repo

$ git branch -r

Checking the branches on Remote repo

$ git remote show origin

Creating a local branch from the remote repo (*** Must do all branches manually.)

$ git fetch origin <Git_Branch_Name>:<Git_Branch_Name>

Deleting the branch from remote repo

$ git push origin --delete <repo_name>


----------------------------------------------------------------------------------------------------------

Pushing

$ git add . $ git commit -m "Message" $ git push


----------------------------------------------------------------------------------------------------------

Pointing Head to a desire branch

$ git checkout <Branch_Name>


----------------------------------------------------------------------------------------------------------

Resetting the the head to original stage

$ git reset --hard <Branch_Name>


----------------------------------------------------------------------------------------------------------

License

This is FREE to use for both personal and commercial, however, you must give reference to my GitHub Url and UserName as a credit for my time and efforts. If you are publishing on printing both hard copies or digitally, please state the license as above.

You may extends more features as your project needs. You may modify freely as license agreement above.

The code is as it. No guarantee to work. You should have the latest Internet browsers. Will not work on the old browser.