跳到内容

EDC REST API

v1.0.6

edckwt · 2023年4月12日 上架

Fetch the content of the sections and articles and search them through the API

正在使用
40+
评分
暂无
累计下载
3,177
最近更新
2024年4月29日
需要 WordPress 5.2+已测试到 6.5.15PHP 7.4+

贡献者

截图

get_category_index.
get_category_index.
get_category_posts.
get_category_posts.
get_search_results
get_search_results
get_recent_posts
get_recent_posts
get_posts
get_posts

This plugin enables you to fetch the contents of your site in JSON format by REST API
Such as sections, articles and search results
and return it as json
To be able to use it in your applications or other sites

Endpoints

  1. recent posts
  2. posts
  3. search
  4. categories
  5. category

For develpoers

  • /api/get_category_posts?type={string}&slug={string}&id={int}&count={int}&page={int}
  • /api/get_category_index
  • /api/get_search_results?type={string}&count={int}&page={int}
  • /api/get_recent_posts?type={string}
  • /api/get_posts?type={string}&cat={int}&count={int}&page={int}

Parameters

  1. slug : {string} default: empty post slug
  2. id : {int} default: empty post id
  3. count: {int} default: 5 data display limit
  4. page : {int} default: 1 data display offset
  5. type : {string} default: post post_type

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums