Endpoint #
GET /wp-json/rtcl/v1/listing-types
Authentication #
π Required
Uses REST API authentication handled by API Key.
Request Parameters #
β None required
Response #
Returns a formatted array of listing types.
Response Example #
[
{
"id": "sell",
"name": "For Sale"
},
{
"id": "rent",
"name": "For Rent"
}
]
Response Fields #
- id (string) β Unique identifier of the listing type
- name (string) β Translated display name of the listing type
Notes #
- Listing types are loaded from:
- Saved options
- Default listing types (fallback)
- Supports translation via
Text::string_translation - Filterable using:
rtcl_get_listing_types