Title: Filter WP Api
Author: ogulcan
Published: <strong>30.09.2017</strong>
Last modified: 21.10.2017

---

Поиск плагинов

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

Этот плагин **не тестировался с последними 3 основными выпусками WordPress**. Скорее
всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

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

# Filter WP Api

 Автор: [ogulcan](https://profiles.wordpress.org/ogulcan/)

[Скачать](https://downloads.wordpress.org/plugin/filter-wp-api.zip)

 * [Детали](https://ru.wordpress.org/plugins/filter-wp-api/#description)
 * [Отзывы](https://ru.wordpress.org/plugins/filter-wp-api/#reviews)
 *  [Установка](https://ru.wordpress.org/plugins/filter-wp-api/#installation)
 * [Разработка](https://ru.wordpress.org/plugins/filter-wp-api/#developers)

 [Поддержка](https://wordpress.org/support/plugin/filter-wp-api/)

## Описание

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

## Скриншоты

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

## Установка

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

## Часто задаваемые вопросы

  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.

## Отзывы

Нет отзывов об этом плагине.

## Участники и разработчики

«Filter WP Api» — проект с открытым исходным кодом. В развитие плагина внесли свой
вклад следующие участники:

Участники

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

[Перевести «Filter WP Api» на ваш язык.](https://translate.wordpress.org/projects/wp-plugins/filter-wp-api)

### Заинтересованы в разработке?

[Посмотрите код](https://plugins.trac.wordpress.org/browser/filter-wp-api/), проверьте
[SVN репозиторий](https://plugins.svn.wordpress.org/filter-wp-api/), или подпишитесь
на [журнал разработки](https://plugins.trac.wordpress.org/log/filter-wp-api/) по
[RSS](https://plugins.trac.wordpress.org/log/filter-wp-api/?limit=100&mode=stop_on_copy&format=rss).

## Журнал изменений

#### 1.0

Initial version.

## Мета

 *  Версия **1.1.0**
 *  Обновление: **9 лет назад**
 *  Активных установок: **Менее 10**
 *  Версия WordPress ** 4.7 или выше **
 *  Совместим вплоть до: **4.8.28**
 *  Версия PHP ** 5.2.4 или выше **
 *  Язык
 * [English (US)](https://wordpress.org/plugins/filter-wp-api/)
 * Метки:
 * [api](https://ru.wordpress.org/plugins/tags/api/)[filter](https://ru.wordpress.org/plugins/tags/filter/)
   [wp-json](https://ru.wordpress.org/plugins/tags/wp-json/)
 *  [Дополнительно](https://ru.wordpress.org/plugins/filter-wp-api/advanced/)

## Оценки

Пока что нет ни одного отзыва.

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

[Посмотреть всеотзывы](https://wordpress.org/support/plugin/filter-wp-api/reviews/)

## Участники

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

## Поддержка

Есть что сказать? Нужна помощь?

 [Перейти в форум поддержки](https://wordpress.org/support/plugin/filter-wp-api/)

## Пожертвование

Хотите поддержать улучшение этого плагина?

 [ Пожертвовать на развитие плагина ](http://github.com/ogulcan)