Contributors: AspirePress Tags: wordpress, api, headless, passthrough, wordpress-api Requires at least: 5.3 Tested up to: 6.8.1 Requires PHP: 7.4 Stable tag: 0.0.1 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html
AspireCloud transforms your WordPress site into a headless installation with source API passthrough functionality. All requests to your site root are automatically passed through to source, while maintaining full WordPress admin functionality.
- Direct passthrough from
https://yoursite.com/{path}tohttps://apisourcesite.com/{path} - GET requests only
- Query parameters preserved
- Error handling and response proxying
- Frontend disabled for regular visitors
- Admin interface fully functional
- WordPress core paths protected
- Static assets served normally
- Seamless integration with WordPress rewrite system
- Automatic activation/deactivation handling
- WordPress coding standards compliant
- Comprehensive error handling
- Install & Activate the plugin
- Visit Settings → Permalinks and click "Save Changes" to flush rewrite rules
- Test by visiting your site root - you should see the api welcome page content
These paths continue to work normally:
/wp-admin/- WordPress admin/wp-login.php- Login page/wp-content/- Static assets/wp-json/- REST API
- WordPress: 5.3 or higher
- PHP: 7.4 or higher
- Server: Must support WordPress rewrite rules
This plugin follows WordPress coding standards and includes:
- PSR-4 autoloading
- PHPUnit tests
- PHPCS integration
- SCSS compilation for admin styles
- Comprehensive documentation
- Node.js 16+ and npm 8+
- Composer
npm install
composer installProduction Build (compressed CSS):
# Using npm
npm run build:css
# Using composer
composer build:cssDevelopment Build (expanded CSS with source maps):
# Using npm
npm run build:css:dev
# Using composer
composer build:css:devWatch Mode (auto-compile on changes):
# Note: Watch mode may have issues on Windows. Use manual builds instead.
# Using npm
npm run watch:css
# Using composer
composer watch:css
# Alternative for Windows - direct command:
npx sass assets/css/admin.scss assets/css/admin.css --watch --style=expanded --source-mapFull Build:
# Using npm
npm run build
# Using composer
composer build| Script | Description |
|---|---|
build:css |
Compile SCSS to compressed CSS |
build:css:dev |
Compile SCSS to expanded CSS with source maps |
watch:css |
Watch SCSS files and auto-compile on changes |
build |
Run all build tasks |
For support and documentation, visit AspirePress Documentation.
- Initial release
- Root-level api.wordpress.org API passthrough
- Headless WordPress functionality
- WordPress admin preservation