Data Store
Lab - Centralized Data, Store, & Config Store
by hellofromTonya · github.com/knowthecode/lab-data-store · website
★ 0stars
5forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/knowthecode/lab-data-store/archive/refs/heads/master.zipDeclares an update source (https://github.com/KnowTheCode/lab-data-store), so updates arrive through the plugin's own updater.
From the readme
Data Store Lab
The starter kit for the Data Store hands-on coding lab series on Know the Code.
What is a data store?
A data store provides you with a centralized, globally available, and persistent way to store values (data and state) and configuration parameters.
3 Different Architectures
In this lab series and plugin, you'll build the data store in 3 different ways:
- Procedural - all function based
- Static Class - procedural wrapped inside of a class and using static methods and properties
- OOP - as an object
Installation
1. Fork this repo to your personal GitHub account.
2. On your computer, open up your favorite command line (terminal) app.
3. Navigate to the /wp-content/plugins folder of your project.
4. In your GitHub repo:
1. Click on the green "Clone or download" button.
2. Click on the "Use HTTPS".
3. Click on the copy icon to copy the URL into your clipboard.
5. Clone your GitHub plugin repository by copying/pasting this line of code onto the command line: git clone and then paste the link you copied in the previous step.