Title: WP Simple Web Services
Author: Barry Kooij
Published: <strong>2013 年 12 月 3 日</strong>
Last modified: 2013 年 12 月 10 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/wp-simple-web-services.svg)

# WP Simple Web Services

 作者：[Barry Kooij](https://profiles.wordpress.org/barrykooij/)

[下载](https://downloads.wordpress.org/plugin/wp-simple-web-services.1.1.0.zip)

 * [详情](https://cn.wordpress.org/plugins/wp-simple-web-services/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-simple-web-services/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wp-simple-web-services/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wp-simple-web-services/#developers)

 [支持](https://wordpress.org/support/plugin/wp-simple-web-services/)

## 描述

Simple WordPress Rest Web Services. Add JSON REST web services to your WordPress
website with a few clicks.

Please report issues and bugs at [Git Hub](https://github.com/barrykooij/wp-simple-web-services/issues).

## 安装

 1. Upload `wp-simple-web-services` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## 常见问题

  Why do I get a 404 error when I try to call the web service URL?

For WP Simple Web Service to work you have to have your permalinks structure set
to /%postname%/, also make sure you .htaccess file is writable.

  What kind of web service call does this plugin provide?

At this moment the WP Simple Web Service plugin only provides REST JSON GET calls
out of the box.

  Does WP Simple Web Service support custom post types?

Yes, it does.

  Does WP Simple Web Service supports (custom) meta fields?

Yes, it does.

  Can I modify the output of the ‘get_posts’ web service?

Yes, you can. WP Simple Web Service accepts all query vars you can pass to WP_Query,
you can add them to the web service request by adding them in the qv GET variable.
For example, limiting the result set to 10 results can be done by adding `&qv[posts_per_page]
=10` to the request URL.

  I am a developer, can I add my own web service calls to WP Simple Web Service ?

Yes, you can. Simply add an action to wpsws_webservice_YOUR-WEB-SERVICE and replace‘
YOUR-WEB-SERVICE’ with your own web service name. This webservice will now be called
when you visit URL/webservice/YOUR-WEB-SERVICE/

  Can I also add my own settings to the WP Simple Web Service settings screen ?

Of course! Simply hook into ‘wpsws_general_settings’ and display your custom settings.

## 评价

此插件暂无评价。

## 贡献者及开发者

「WP Simple Web Services」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Barry Kooij ](https://profiles.wordpress.org/barrykooij/)

[帮助将「WP Simple Web Services」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-simple-web-services)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wp-simple-web-services/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/wp-simple-web-services/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/wp-simple-web-services/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wp-simple-web-services/)。

## 更新日志

#### 1.1.0

 * Added default WP_Query argument support to get_posts web service
 * Removed JS console log

#### 1.0.1

 * Added an install function that flushed rewrite rules
 * Changed the way the plugin is loaded, removed anonymous function

#### 1.0.0

 * Initial release

## 额外信息

 *  版本 **1.1.0**
 *  最后更新：**13 年前**
 *  活跃安装数量 **20+**
 *  WordPress 版本 ** 3.1 或更高版本 **
 *  已测试的最高版本为 **3.7.41**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-simple-web-services/)
 * 标签
 * [JSON](https://cn.wordpress.org/plugins/tags/json/)[rest](https://cn.wordpress.org/plugins/tags/rest/)
   [Web Service](https://cn.wordpress.org/plugins/tags/web-service/)[webservice](https://cn.wordpress.org/plugins/tags/webservice/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-simple-web-services/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/wp-simple-web-services/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/wp-simple-web-services/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/wp-simple-web-services/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/wp-simple-web-services/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/wp-simple-web-services/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-simple-web-services/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wp-simple-web-services/reviews/)

## 贡献者

 *   [ Barry Kooij ](https://profiles.wordpress.org/barrykooij/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/wp-simple-web-services/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Q7QDZTLCRKSMG)