WP Manifestindependent plugin directory
manifest / integrations / wordpress-single-file-plugin-restapi

فراهم کننده API برای سیستم فرانت

برای توضیحات، با توسعه دهنده ارتباط بگیرید.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/aydafiruzy/wordpress-single-file-plugin-restapi/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

AriaPay 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

  1. Upload the plugin files to /wp-content/mu-plugins/ directory
  2. 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 data
  • GET /cat/{identifier} - Get category items
  • GET /{mode}/{post_type}/{post_id?} - Get posts by type and mode
  • GET /comments/{id} - Get post comments
  • GET /seo/{id} - Get SEO data
  • GET /faq/{id} - Get FAQ data

Utility Endpoints

  • GET,POST /cache/purge - Purge API cache
  • GET /clear-cache/{type?} - Clear specific cache
  • GET /search - Search content
  • GET /categories/{taxonomy} - Get taxonomy terms
  • GET /menus/{location?} - Get menu data
  • GET /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.