Title: REST API Custom Fields
Author: Make
Published: <strong>19 juli 2019</strong>
Last modified: 14 augusti 2020

---

Sök tillägg

![](https://ps.w.org/rest-api-custom-fields/assets/banner-772x250.png?rev=2125638)

Det här tillägget **har inte testats med någon av de 3 senaste huvudversionerna 
av WordPress**. Det kanske inte längre underhålls och kan ha kompatibilitetsproblem
när det används tillsammans med nyare versioner av WordPress.

![](https://ps.w.org/rest-api-custom-fields/assets/icon.svg?rev=2125638)

# REST API Custom Fields

 Av [Make](https://profiles.wordpress.org/integromat/)

[Ladda ner](https://downloads.wordpress.org/plugin/rest-api-custom-fields.zip)

 * [Detaljer](https://sv.wordpress.org/plugins/rest-api-custom-fields/#description)
 * [Recensioner](https://sv.wordpress.org/plugins/rest-api-custom-fields/#reviews)
 *  [Installation](https://sv.wordpress.org/plugins/rest-api-custom-fields/#installation)
 * [Utveckling](https://sv.wordpress.org/plugins/rest-api-custom-fields/#developers)

 [Support](https://wordpress.org/support/plugin/rest-api-custom-fields/)

## Beskrivning

This plugin enhances WordPress REST API v2 responses about metadata.

## Skärmdumpar

[⌊Settings pane⌉⌊Settings pane⌉[

Settings pane

## Installation

 1. Upload ”rest-api-custom-fields” folder to the ”/wp-content/plugins/” directory.
 2. Activate the plugin through the ”Plugins” menu in WordPress.
 3. New item ”REST API Custom Fields” appears in the admin menu (under the Settings
    menu). There you can select which metadata you want to contain in the REST API 
    response.

## Recensioner

![](https://secure.gravatar.com/avatar/de46ac8aba3c1e3cf6e476d77765d6cdba0803016583b8575033d3297b66a9cf?
s=60&d=retro&r=g)

### 󠀁[Heaven sent!](https://wordpress.org/support/topic/heaven-sent-4/)󠁿

 [dallinchase](https://profiles.wordpress.org/dallinchase/) 29 oktober 2022

Simple but great plugin. It allowed me to add everything I needed from my CPT fields
to the WP rest API v2. Thank you guys!

![](https://secure.gravatar.com/avatar/75fde943561b59909958fb8809793c2c2a8ea356644dc201108c7262090c0b29?
s=60&d=retro&r=g)

### 󠀁[Excellent tool, but needs to be deactivated…](https://wordpress.org/support/topic/excellent-tool-but-needs-to-be-deactivated/)󠁿

 [Damien](https://profiles.wordpress.org/damienmaurer/) 2 maj 2021

This is truly excellent. It makes adding fields to the Rest API easy. However, there’s
the slight issue that it slows down every. single. page. by 3-5 seconds because 
it makes a terribly slow SQL query on EVERY admin page. So I use it when I need 
it. Then I quickly deactivate it.

![](https://secure.gravatar.com/avatar/bda07ea11e6cfec18c50f75600cf3c2d880a6382f999bf8e247627d179fcd29a?
s=60&d=retro&r=g)

### 󠀁[Time saver](https://wordpress.org/support/topic/time-saver-282/)󠁿

 [agent3bood](https://profiles.wordpress.org/agent3bood/) 29 januari 2021

Simple to use, does what is says.

![](https://secure.gravatar.com/avatar/c6ce4481baf0ea12d11eb2467eeb2eacf9ced91d61d66ecf544edaaf97ea01f1?
s=60&d=retro&r=g)

### 󠀁[Absolutely amazing.](https://wordpress.org/support/topic/absolutely-amazing-85/)󠁿

 [dpw1](https://profiles.wordpress.org/dpw1/) 27 oktober 2020

Extremely simple to use and effective, just plain plug-and-play style. Thank you
very much for the amazing app.

![](https://secure.gravatar.com/avatar/d82ca748828bcdb5714343d730f9bd343b6d40ac62bf91e83ea98659c885dcb0?
s=60&d=retro&r=g)

### 󠀁[Great Plugin!](https://wordpress.org/support/topic/great-plugin-27126/)󠁿

 [talsh272](https://profiles.wordpress.org/talsh272/) 22 juli 2020

Spared me a lot of headache. Thank you!

![](https://secure.gravatar.com/avatar/c31d350a7ce032fe38ab3cce1d84e0187eba59e3a4b1ace8696948eafd50f992?
s=60&d=retro&r=g)

### 󠀁[Fantastic plugin](https://wordpress.org/support/topic/fantastic-plugin-1237/)󠁿

 [onito000](https://profiles.wordpress.org/onito000/) 22 december 2019

Hey bro, you created an awesome plugin. Your plugin solved all my issues, thank 
you so much, my friend.

 [ Läs alla 8 betyg ](https://wordpress.org/support/plugin/rest-api-custom-fields/reviews/)

## Bidragsgivare och utvecklare

”REST API Custom Fields” är programvara med öppen källkod. Följande personer har
bidragit till detta tillägg.

Bidragande personer

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

[Översätt ”REST API Custom Fields” till ditt språk.](https://translate.wordpress.org/projects/wp-plugins/rest-api-custom-fields)

### Intresserad av programutveckling?

[Läs programkoden](https://plugins.trac.wordpress.org/browser/rest-api-custom-fields/),
kika på [SVN-filförvaret](https://plugins.svn.wordpress.org/rest-api-custom-fields/)
eller prenumerera på [utvecklarloggen](https://plugins.trac.wordpress.org/log/rest-api-custom-fields/)
via [RSS](https://plugins.trac.wordpress.org/log/rest-api-custom-fields/?limit=100&mode=stop_on_copy&format=rss).

## Ändringslogg

#### 1.3

 * It is now possible to expose custom fields of custom post types

#### 1.2

 * Exposed values can now contain arrays
 * Attributes representing custom fields moved directly under the top-level node
   in the response

#### 1.1

 * Fixed db prefix

#### 1.0

 * Init version

## Meta

 *  Version **1.3**
 *  Senast uppdaterat **6 år sedan**
 *  Aktiva installationer **800+**
 *  WordPress-version ** 5.0 eller senare **
 *  Testat upp till **5.5.18**
 *  PHP-version ** 5.6 eller senare **
 *  Språk
 * [English (US)](https://wordpress.org/plugins/rest-api-custom-fields/)
 * Etiketter
 * [api](https://sv.wordpress.org/plugins/tags/api/)[endpoint](https://sv.wordpress.org/plugins/tags/endpoint/)
   [Endpoints](https://sv.wordpress.org/plugins/tags/endpoints/)[rest](https://sv.wordpress.org/plugins/tags/rest/)
   [rest-api](https://sv.wordpress.org/plugins/tags/rest-api/)
 *  [Avancerad vy](https://sv.wordpress.org/plugins/rest-api-custom-fields/advanced/)

## Betyg

 4.5 av 5 stjärnor.

 *  [  6 5-stjärniga recensioner     ](https://wordpress.org/support/plugin/rest-api-custom-fields/reviews/?filter=5)
 *  [  0 4-stjärniga recensioner     ](https://wordpress.org/support/plugin/rest-api-custom-fields/reviews/?filter=4)
 *  [  2 3-stjärniga recensioner     ](https://wordpress.org/support/plugin/rest-api-custom-fields/reviews/?filter=3)
 *  [  0 2-stjärniga recensioner     ](https://wordpress.org/support/plugin/rest-api-custom-fields/reviews/?filter=2)
 *  [  0 1-stjärniga recensioner     ](https://wordpress.org/support/plugin/rest-api-custom-fields/reviews/?filter=1)

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

[Se alla recensioner](https://wordpress.org/support/plugin/rest-api-custom-fields/reviews/)

## Bidragande personer

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

## Support

Har du något att säga? Behöver du hjälp?

 [Visa supportforum](https://wordpress.org/support/plugin/rest-api-custom-fields/)