Contents
On this page
List Shortcodes - Plugixa Testimonial
GET /plugixatestimonial/v1/shortcodes
List saved shortcodes, one page at a time. See Shortcodes.
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?search=agency
Query parameters
| Name | Type | Default | Description |
|---|---|---|---|
search |
string |
Text found in the name, slug or description. Same as filter[search]. |
Plus the list parameters every paged list accepts. orderby accepts id, name, slug, created_at and modified_at; anything else falls back to created_at.
Responses
200 OK. data.items is one page of saved shortcodes.
{
"success": true,
"message": "",
"data": {
"items": [
{
"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
}
],
"total": 1,
"state": {
"filter": {
"search": "agency"
},
"limit": 20,
"offset": 0,
"orderby": "created_at",
"order": "DESC"
}
}
}
| Field | Type | Meaning |
|---|---|---|
data.items[].id |
string |
The saved shortcode’s id. Use it as [plugixa_testimonial id="7"] |
data.items[].name |
string |
The name |
data.items[].slug |
string |
Unique across saved shortcodes |
data.items[].description |
string|null |
Plain text |
data.items[].config |
object |
What it shows: view_id, categories, limit (-1 for all), orderby, order, featured_only, min_rating, display toggles and schema |
data.items[].created_at |
string|null |
Site-time datetime |
data.total |
integer |
Shortcodes matching the search, before paging |
Errors
Plus the errors every endpoint can return.
Examples
curl -s "https://your-site.example/wp-json/plugixatestimonial/v1/shortcodes?search=agency" \
-u "admin:$WP_APP_PASSWORD"
<?php
$query = http_build_query([
'search' => 'agency',
]);
$ch = curl_init('https://your-site.example/wp-json/plugixatestimonial/v1/shortcodes?' . $query);
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 query = new URLSearchParams({ search: 'agency' });
const response = await fetch(`https://your-site.example/wp-json/plugixatestimonial/v1/shortcodes?${query}`, {
headers: {
'Authorization': 'Basic ' + btoa(`admin:${process.env.WP_APP_PASSWORD}`),
},
});
const { data } = await response.json();
Quick Links
Share