A modern, user-friendly WordPress plugin for creating and managing beautiful pricing plans and comparison tables.
- 🎨 Modern, card-based interface
- 📱 Fully responsive design
- 🔄 Single-page application (SPA) architecture
- 💼 Multiple pricing plan layouts
- 📦 Package management system
- 🎯 Easy-to-use shortcodes
- ⚡ Fast and lightweight
- 🛠️ Developer-friendly codebase
- Download the plugin zip file
- Go to WordPress admin panel > Plugins > Add New
- Click "Upload Plugin" and choose the downloaded file
- Click "Install Now" and then "Activate"
- Node.js (v14 or higher)
- Composer
- WordPress (v5.8 or higher)
- PHP (v7.4 or higher)
# Install PHP dependencies
composer install
# Install JavaScript dependencies
npm install
# Start development
npm start
# Build for production
npm run buildpricing-plan/
├── core/ # PHP core files
│ ├── Admin/ # Admin-related functionality
│ ├── Api/ # REST API endpoints
│ ├── Base/ # Base plugin functionality
│ ├── Frontend/ # Frontend-related functionality
│ └── Models/ # Database models
├── src/ # React application source
│ ├── components/ # React components
│ └── style.css # Main stylesheet
├── build/ # Compiled assets
├── languages/ # Translation files
└── vendor/ # Composer dependencies
- After activation, find "Pricing Plan" in your WordPress admin menu
- Create a new pricing plan
- Add packages to your plan
- Use the shortcode
[pricing_plan id="X"]to display your plan - Customize appearance using the settings page
[pricing_plan id="1"] # Display a specific pricing plan
[pricing_plan id="1" type="table"] # Display as comparison table
The plugin provides a REST API for developers:
GET /wp-json/pricing-plan/v1/plans- List all plansPOST /wp-json/pricing-plan/v1/plans- Create a planGET /wp-json/pricing-plan/v1/plans/{id}- Get a specific planPUT /wp-json/pricing-plan/v1/plans/{id}- Update a planDELETE /wp-json/pricing-plan/v1/plans/{id}- Delete a plan
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the GPL v2 or later - see the LICENSE file for details.
Created by Maruf Khan