Contents
Get Shortcode - Plugixa Testimonial
GET /plugixatestimonial/v1/shortcodes/{id}
Read one saved shortcode and its configuration.
Any signed-in user with the plugixa_testimonial_edit capability or WordPress’s edit_posts (Contributors and up, by default).
Request
GET https://your-site.example/wp-json/plugixatestimonial/v1/shortcodes/7
Path parameters
| Name | Type | Description |
|---|---|---|
id |
integer |
The shortcode’s id |
Responses
200 OK. data is the saved shortcode.
{
"success": true,
"message": "",
"data": {
"id": "7",
"name": "Agency reviews",
"slug": "agency-reviews",
"description": "Top agency testimonials.",
"config": {
"view_id": 2,
"categories": [
3
],
"limit": 6,
"orderby": "display_order",
"order": "ASC",
"featured_only": false,
"min_rating": 4,
"display": {
"showPhoto": true,
"showRating": true,
"showRole": true,
"showCompany": true,
"showDate": true,
"showWebsite": false,
"showQuoteIcon": true,
"showCustomFields": true
},
"schema": true
},
"created_at": "2026-11-12 09:30:00",
"created_by": "1",
"modified_at": null,
"modified_by": null
}
}
| Field | Type | Meaning |
|---|---|---|
data.id |
string |
The saved shortcode’s id. Use it as [plugixa_testimonial id="7"] |
data.name |
string |
The name |
data.slug |
string |
Unique across saved shortcodes |
data.description |
string|null |
Plain text |
data.config |
object |
What it shows: view_id, categories, limit (-1 for all), orderby, order, featured_only, min_rating, display toggles and schema |
data.created_at |
string|null |
Site-time datetime |
Errors
| Status | Code | When |
|---|---|---|
404 |
rest_error |
No saved shortcode with that id. |
Plus the errors every endpoint can return.
Examples
curl -s "https://your-site.example/wp-json/plugixatestimonial/v1/shortcodes/7" \
-u "admin:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixatestimonial/v1/shortcodes/7');
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/shortcodes/7', {
headers: {
'Authorization': 'Basic ' + btoa(`admin:${process.env.WP_APP_PASSWORD}`),
},
});
const { data } = await response.json();
Quick Links
Share