Skip to content

Returns the custom CSS and custom JavaScript injected into the portal.

Endpoint

  • Method: GET

  • Path: /settings/snippets-settings

  • Edition: PRO

  • Controller: ProAdminController@getSnippetsSettings

  • Route source: fluent-community-pro/app/Http/Routes/api.php:33

  • Controller source: fluent-community-pro/app/Http/Controllers/ProAdminController.php

  • Requires the FluentCommunity community-admin permission (or a WordPress super admin).

  • Requires FluentCommunity Pro.

Live sample

The request and response below were recorded against a running FluentCommunity install and then anonymised — member names, emails, avatars and post content are fictional, and long collections are trimmed to a few entries.

GET Get Snippets Settings

GET
/settings/snippets-settings

Returns the custom CSS and custom JavaScript injected into the portal.

Controller: ProAdminController@getSnippetsSettings
Route source: fluent-community-pro/app/Http/Routes/api.php:33

Authorizations

ApplicationPasswords

WordPress Application Passwords — use Basic auth with username:application_password.

Type
API Key (header: Authorization)

Responses

Successful response

application/json
JSON
{
  
"snippets": {
  
  
"custom_css": "string",
  
  
"custom_js": "string"
  
}
}

Playground

Authorization

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation