Contents
On this page
Get Custom Field - Plugixa Testimonial
GET /plugixatestimonial/v1/custom-fields/{id}
Read one custom field definition.
Administrators only: the user needs WordPress’s manage_options capability. No plugin capability opens this route.
Request
GET https://your-site.example/wp-json/plugixatestimonial/v1/custom-fields/5
Path parameters
| Name | Type | Description |
|---|---|---|
id |
integer |
The field’s id |
Responses
200 OK. data is the field.
{
"success": true,
"message": "",
"data": {
"id": "5",
"language_code": null,
"translation_group": null,
"field_key": "project_type",
"field_label": "Project type",
"field_type": "select",
"field_options": [
"Website redesign",
"Branding",
"SEO"
],
"placeholder": "",
"is_required": false,
"show_in_frontend": true,
"menu_order": "0",
"created_at": "2026-11-12 09:30:00",
"modified_at": "2026-11-12 09:30:00",
"status": "publish",
"value_count": "18"
}
}
| Field | Type | Meaning |
|---|---|---|
data.id |
string |
The field’s id |
data.field_key |
string |
The key values are stored under in a testimonial’s custom_fields |
data.field_label |
string |
The label |
data.field_type |
string |
text, textarea, url, number, date, select, checkbox or color |
data.field_options |
string[]|null |
The choices of a select field |
data.is_required |
boolean |
Required on the submission form |
data.show_in_frontend |
boolean |
Shown on the front end |
data.menu_order |
string |
Position in the manual order |
data.status |
string |
publish, draft or trash. Only publish fields reach the front end |
data.value_count |
string |
Stored values under this key, across all testimonials |
Errors
| Status | Code | When |
|---|---|---|
404 |
rest_error |
No field with that id. |
Plus the errors every endpoint can return.
Examples
curl -s "https://your-site.example/wp-json/plugixatestimonial/v1/custom-fields/5" \
-u "admin:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixatestimonial/v1/custom-fields/5');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_USERPWD => 'admin:' . getenv('WP_APP_PASSWORD'),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const response = await fetch('https://your-site.example/wp-json/plugixatestimonial/v1/custom-fields/5', {
headers: {
'Authorization': 'Basic ' + btoa(`admin:${process.env.WP_APP_PASSWORD}`),
},
});
const { data } = await response.json();
Quick Links
Share