WP Manifestindependent plugin directory
manifest / developer / wordpress-sample-plugin

WP Sample Plugin

Sample WordPress plugin demonstrating plugin architecture, REST API, and scalable code practices.

by Shalini Bhardwaj · github.com/13shalinibhardwaj/wordpress-sample-plugin

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/13shalinibhardwaj/wordpress-sample-plugin/archive/refs/heads/main.zip

Description

Professional WordPress plugin demonstrating:

  • REST API endpoint
  • Singleton settings page
  • Proper namespacing and OOP
  • Clean folder structure

Features

  • REST API: /wp-json/wp-sample/v1/hello
  • Admin settings to change greeting message
  • Fully namespaced for conflict-free use
  • Lightweight and professional

Installation

  1. Upload plugin to /wp-content/plugins/
  2. Activate in WordPress admin
  3. Visit API: /wp-json/wp-sample/v1/hello
  4. Change greeting via Settings → WP Sample Plugin