Title: Filter WP Api
Author: ogulcan
Published: <strong>30. september, 2017</strong>
Last modified: 21. oktober, 2017

---

Søg plugins

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

Dette plugin **er ikke blevet testet med de seneste 3 større udgivelser af WordPress**.
Det vedligeholdes eller understøttes muligvis ikke længere og kan have kompatibilitetsproblemer,
når det bruges med nyere versioner af WordPress.

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

# Filter WP Api

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

[Download](https://downloads.wordpress.org/plugin/filter-wp-api.zip)

 * [Detaljer](https://da.wordpress.org/plugins/filter-wp-api/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/filter-wp-api/#reviews)
 *  [Installation](https://da.wordpress.org/plugins/filter-wp-api/#installation)
 * [Udvikling](https://da.wordpress.org/plugins/filter-wp-api/#developers)

 [Support](https://wordpress.org/support/plugin/filter-wp-api/)

## Beskrivelse

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

## Skærmbilleder

[⌊screenshot-1.png⌉⌊screenshot-1.png⌉[

screenshot-1.png

[⌊screenshot-2.png⌉⌊screenshot-2.png⌉[

screenshot-2.png

## Installation

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

## FAQ

  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.

## Anmeldelser

Der er ingen anmeldelser for denne widget.

## Bidragsydere & udviklere

“Filter WP Api” er open source-software. Følgende personer har bidraget til dette
plugin.

Bidragsydere

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

[Oversæt “Filter WP Api” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/filter-wp-api)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/filter-wp-api/), tjek
[SVN repository](https://plugins.svn.wordpress.org/filter-wp-api/), eller abonner
på [udviklerloggen](https://plugins.trac.wordpress.org/log/filter-wp-api/) via [RSS](https://plugins.trac.wordpress.org/log/filter-wp-api/?limit=100&mode=stop_on_copy&format=rss).

## Ændringslog

#### 1.0

Initial version.

## Meta

 *  Version **1.1.0**
 *  Senest opdateret **9 år siden**
 *  Aktive installationer **Færre end 10**
 *  WordPress-version ** 4.7 eller højere **
 *  Testet op til **4.8.30**
 *  PHP-version ** 5.2.4 eller højere **
 *  Sprog
 * [English (US)](https://wordpress.org/plugins/filter-wp-api/)
 * Tags
 * [api](https://da.wordpress.org/plugins/tags/api/)[filter](https://da.wordpress.org/plugins/tags/filter/)
   [wp-json](https://da.wordpress.org/plugins/tags/wp-json/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/filter-wp-api/advanced/)

## Bedømmelser

Der er endnu ikke indsendt nogen anmeldelser.

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

[Se alle anmeldelser](https://wordpress.org/support/plugin/filter-wp-api/reviews/)

## Bidragsydere

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

## Support

Har du noget at sige? Har du brug for hjælp?

 [Vis supportforum](https://wordpress.org/support/plugin/filter-wp-api/)

## Donér

Vil du gerne støtte udviklingen af dette plugin?

 [ Donér til dette plugin ](http://github.com/ogulcan)