Contents
Get Category - Plugixa FAQ
GET /plugixa-faq/v1/categories/{id}
Read one category with its number of FAQs.
Any signed-in user with the plugixa_faq_manage capability or WordPress’s edit_posts (Contributors and up, by default).
Request
GET https://your-site.example/wp-json/plugixa-faq/v1/categories/3
Path parameters
| Name | Type | Description |
|---|---|---|
id |
integer |
The category’s id |
Responses
200 OK. data is the category.
{
"success": true,
"message": "",
"data": {
"id": "3",
"name": "Shipping",
"slug": "shipping",
"description": "Delivery times and costs.",
"icon": "",
"color": "#2271b1",
"menu_order": "0",
"feedback_enabled": "1",
"created_at": "2026-11-12 09:30:00",
"created_by": "1",
"modified_at": null,
"modified_by": null,
"language_code": null,
"translation_group": null,
"faq_count": "12"
}
}
| Field | Type | Meaning |
|---|---|---|
data.faq_count |
string |
FAQs in the category, any status |
data.feedback_enabled |
string |
"1" or "0" |
data.translations |
array |
Only with WPML or Polylang active: { id, language_code } of every category in the same translation group |
Errors
| Status | Code | When |
|---|---|---|
404 |
rest_error |
No category with that id. |
Plus the errors every endpoint can return.
Examples
curl -s "https://your-site.example/wp-json/plugixa-faq/v1/categories/3" \
-u "admin:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-faq/v1/categories/3');
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/plugixa-faq/v1/categories/3', {
headers: {
'Authorization': 'Basic ' + btoa(`admin:${process.env.WP_APP_PASSWORD}`),
},
});
const { data } = await response.json();
Quick Links
Share