wp-staging
Last commit date
Backend
10 months ago
Backup
10 months ago
Basic
11 months ago
Core
10 months ago
Framework
10 months ago
Frontend
11 months ago
Notifications
1 year ago
Staging
10 months ago
assets
10 months ago
languages
1 year ago
resources
1 year ago
vendor_wpstg
10 months ago
views
10 months ago
CLAUDE.md
10 months ago
CONTRIBUTING.md
1 year ago
Deactivate.php
10 months ago
README.md
1 year ago
SECURITY.md
2 years ago
autoloader.php
3 years ago
bootstrap.php
1 year ago
constantsFree.php
10 months ago
freeBootstrap.php
1 year ago
install.php
1 year ago
opcacheBootstrap.php
10 months ago
readme.txt
10 months ago
runtimeRequirements.php
1 year ago
uninstall.php
11 months ago
wp-staging-error-handler.php
1 year ago
wp-staging.php
10 months ago
CLAUDE.md
41 lines
| 1 | # WP Staging Pro - Source Code Structure |
| 2 | |
| 3 | This directory contains the main source code for the WP Staging Pro WordPress plugin. |
| 4 | |
| 5 | ## Key Architecture Components |
| 6 | |
| 7 | ### Core Directories |
| 8 | - **`Framework/`** - Core framework and utilities (DI container, filesystem, database helpers) |
| 9 | - **`Backend/`** - WordPress admin interface and management functionality |
| 10 | - **`Frontend/`** - Public-facing functionality and user interfaces |
| 11 | - **`Staging/`** - Core staging/cloning functionality |
| 12 | - **`Backup/`** - Backup creation, management, and restoration features |
| 13 | - **`Pro/`** - Pro-only features (push/pull, advanced options, cloud storage) |
| 14 | - **`Basic/`** - Core functionality available in both free and pro versions |
| 15 | |
| 16 | ### Important Files |
| 17 | - **`wp-staging-pro.php`** - Main plugin file (Pro version) |
| 18 | - **`bootstrap.php`** - Plugin initialization and setup |
| 19 | - **`constantsPro.php`** - Pro version constants and configuration |
| 20 | - **`autoloader.php`** - Class autoloader for plugin classes |
| 21 | |
| 22 | ### Build Process |
| 23 | - **Source files are in `src/`** - This is the development code |
| 24 | - **Distribution files go to `dist/`** - Built versions with prefixed vendors |
| 25 | - **Always test with distribution files** - They have proper vendor prefixing |
| 26 | |
| 27 | ### Vendor Libraries |
| 28 | - **`composer.json`** - Defines PHP dependencies |
| 29 | - **Libraries are prefixed during build** - Prevents conflicts with other plugins |
| 30 | - **Use `make dev_dist`** - To create properly prefixed distribution version |
| 31 | |
| 32 | ### Free vs Pro Structure |
| 33 | - **`FREE-MAIN-PLUGIN/`** - Contains free version bootstrap files |
| 34 | - **`Pro/`** - Pro-only features and functionality |
| 35 | - **Constants control feature availability** - WPSTG_DEV_BASIC for free mode |
| 36 | |
| 37 | ## Development Workflow |
| 38 | 1. Edit source files in `src/` |
| 39 | 2. Run `make dev_dist` to build distribution versions |
| 40 | 3. Test with distribution files in `dist/wp-staging-pro/` |
| 41 | 4. Use Docker environment with `make up` for testing |