manifest / integrations / wordpress-single-file-plugin-restapi
فراهم کننده API برای سیستم فرانت
برای توضیحات، با توسعه دهنده ارتباط بگیرید.
by AydaFiruzy · github.com/aydafiruzy/wordpress-single-file-plugin-restapi
★ 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/aydafiruzy/wordpress-single-file-plugin-restapi/archive/refs/heads/main.zipAriaPay Next.js WordPress REST API Plugin
A WordPress plugin that provides custom REST API endpoints optimized for Next.js frontend integration.
Features
- Custom REST API endpoints for pages, posts, and custom post types
- Category and taxonomy support
- Advanced caching system
- SEO data integration (Rank Math)
- Menu management
- Theme options and settings
- Banner management
- Comment system
- Search functionality
Installation
- Upload the plugin files to
/wp-content/mu-plugins/directory - The plugin will be automatically activated as it's a Must-Use plugin
API Base URL
All endpoints are prefixed with: /wp-json/next/v1/
Available Endpoints
Content Endpoints
GET /page/{identifier}- Get page/post dataGET /cat/{identifier}- Get category itemsGET /{mode}/{post_type}/{post_id?}- Get posts by type and modeGET /comments/{id}- Get post commentsGET /seo/{id}- Get SEO dataGET /faq/{id}- Get FAQ data
Utility Endpoints
GET,POST /cache/purge- Purge API cacheGET /clear-cache/{type?}- Clear specific cacheGET /search- Search contentGET /categories/{taxonomy}- Get taxonomy termsGET /menus/{location?}- Get menu dataGET /theme-options/{method?}- Get theme options
Cache Management
The plugin implements a robust caching system using WordPress transients. Cache can be purged via:
- API endpoint:
/wp-json/next/v1/cache/purge - Specific cache clearing:
/wp-json/next/v1/clear-cache/{type}
Author
AydaFiruzy
License
This project is proprietary software. Contact the developer for usage permissions.