Title: Filter WP Api
Author: ogulcan
Published: <strong>30 Tháng 9, 2017</strong>
Last modified: 21 Tháng 10, 2017

---

Tìm kiếm plugin

![](https://ps.w.org/filter-wp-api/assets/banner-772x250.png?rev=1738881)

Plugin này **chưa được cập nhật với 3 phiên bản mới nhất của WordPress**. Nó có 
thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress
mới nhất.

![](https://ps.w.org/filter-wp-api/assets/icon-256x256.png?rev=1738881)

# Filter WP Api

 Bởi [ogulcan](https://profiles.wordpress.org/ogulcan/)

[Tải về](https://downloads.wordpress.org/plugin/filter-wp-api.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/filter-wp-api/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/filter-wp-api/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/filter-wp-api/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/filter-wp-api/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/filter-wp-api/)

## Mô tả

If you ever used WP Rest API, you should have noticed that there are lots of fields
that even your client does not need. It makes no sense to load all fields for simple
list or even single post view.

This plugin aims to remove redundant fields on Rest API. For now, it’s only available
for posts.

#### Features

There are two endpoints: “compact” and “detailed.

 * “Compact” is useful for listing posts and Detailed is better for single post 
   view.
 * First image of featured media will be added as ‘image’ on detailed and compact.
 * Modified was used as default date.
 * Requires at least WordPress 4.7

## Ảnh màn hình

 * [[
 * screenshot-1.png
 * [[
 * screenshot-2.png

## Cài đặt

This section describes how to install the plugin and get it working.

 1. Upload the plugin files to the `/wp-content/plugins/filter-wp-api` directory, or
    install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Use the Settings->Filter Rest Api screen to configure the plugin
 4. Both endpoints are enabled as default

## Hỏi đáp

  How to use compact and detailed endpoints?

Just add “?_compact” or “?_detailed” to end of api url.

  Disabling plugin also disables rest api?

Nope. Just filtering fields will be disabled. Even you call endpoints, default data
will be available.

  Compact and detailed are not working for pages/category/author/media

Correct. This is a plugin that only filters for posts. Please stay tuned for more
features.

## Đánh giá

Không có đánh giá nào cho plugin này.

## Người đóng góp & Lập trình viên

“Filter WP Api” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

 *   [ ogulcan ](https://profiles.wordpress.org/ogulcan/)

[Dịch “Filter WP Api” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/filter-wp-api)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/filter-wp-api/), check out
[SVN repository](https://plugins.svn.wordpress.org/filter-wp-api/), hoặc theo dõi
[nhật ký phát triển](https://plugins.trac.wordpress.org/log/filter-wp-api/) qua 
[RSS](https://plugins.trac.wordpress.org/log/filter-wp-api/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 1.0

Initial version.

## Meta

 *  Phiên bản **1.1.0**
 *  Cập nhật lần cuối **9 năm trước**
 *  Số lượt cài đặt **Ít hơn 10**
 *  Phiên bản WordPress ** 4.7 hoặc cao hơn **
 *  Đã kiểm tra lên đến **4.8.28**
 *  Phiên bản PHP ** 5.2.4 hoặc cao hơn **
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/filter-wp-api/)
 * Thẻ
 * [api](https://vi.wordpress.org/plugins/tags/api/)[filter](https://vi.wordpress.org/plugins/tags/filter/)
   [wp-json](https://vi.wordpress.org/plugins/tags/wp-json/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/filter-wp-api/advanced/)

## Đánh giá

Chưa có đánh giá nào được gửi.

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

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/filter-wp-api/reviews/)

## Những người đóng góp

 *   [ ogulcan ](https://profiles.wordpress.org/ogulcan/)

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/filter-wp-api/)

## Ủng hộ

Bạn có muốn hỗ trợ vào sự phát triển của plugin này?

 [ Ủng hộ plugin này ](http://github.com/ogulcan)