跳到内容

cct_webapi

v1.0

rag-guay · 2012年8月21日 上架

This plugin creates a custom post type called API. When you create an API post, all of the content will be executed as PHP code just before the theme …

正在使用
10 以下
评分
暂无
累计下载
1,391
最近更新
2012年8月21日
需要 WordPress 3.2+已测试到 3.4.2

贡献者

Many times when a site powered by WordPress wants to supply a Web API for their site, they will work outside of WordPress using either PHP or Ruby on Rails. Then they have to write their own functions to get to the information inside the database for their WordPress site. I always thought that was a little backwards. That is why I wrote the Web API plugin for WordPress.

With the Web API plugin, you no longer have to do that. This plugin creates a custom post type called API. When you create an API post, all of the content will be executed as PHP code just before the theme stuff is executed in WordPress. Therefore, you have full access to all the WordPress PHP functions to create whatever you want: JSON output, HTML sniplets, full HTML pages without any of the sites theme or code, or anything else you can imagine. After the code on the page is executed, then the PHP session will be ended.

Plums

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

导航

说明

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

© 2026 Plums