HTH Sample Plugin // Required
a simple wordpress plugin to get you started on the base concepts as part of a youtube tutorial on https://youtube.com/@hackthehologram
by Jacques Artgraven // Required · github.com/sinappsus-agency/wordpress-plugin-quickstart · website
★ 0stars
0forks
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/sinappsus-agency/wordpress-plugin-quickstart/archive/refs/heads/main.zipDeclares an update source (https://example.com/plugin-update // Optional (for custom updates)), so updates arrive through the plugin's own updater.
From the readme
HTH Sample Plugin - WordPress Plugin Development Tutorial
A comprehensive WordPress plugin developed for educational purposes, demonstrating various WordPress development concepts through practical examples.
You can follow the video tutorial on youtube for this repo
📋 Overview
This plugin serves as a complete tutorial for WordPress plugin development, covering essential topics from basic hooks to advanced database operations. Each chapter focuses on a specific aspect of WordPress development.
🎯 Learning Objectives
After working through this plugin, you will understand:
- WordPress hooks (actions and filters)
- Creating custom shortcodes
- Building custom post types
- REST API integration
- Widget development
- Script and style enqueuing
- Database operations with custom tables
📁 Plugin Structure
🚀 Installation
1. Download or clone this repository
2. Upload the hth-sample-plugin folder to your WordPress /wp-content/plugins/ directory
3. Activate the plugin through the 'Plugins' menu in WordPress
4. The plugin will automatically create a custom database table upon activation
📚 Chapter Breakdown
Chapter 1: Actions and Filters (Hooks)
File: chapters/actions.php
Learn about W