Dev Docs
  • Disciple.Tools Technical Documentation
  • Theme Core
    • API - Posts
      • List of Endpoints
      • Fields Format
      • Get Post
      • Create Post
      • Update Post
      • Post Comments
      • Post Activity
      • List Query
      • Global Search
      • Posts in Typeaheads
      • Post-Sharing
      • Get Following
      • Settings
    • API - Other
      • Users
      • Locations
      • Settings
    • Hooks
      • Record Page Hooks
      • API-Hooks
      • Public settings
      • Adding menu navigation links
    • Customization
      • Fields
      • Custom Post Types
      • Post Type Modules
      • Adding Fields and Tiles.
    • Authentication
      • JWT-Authentication-for-the-mobile-app
      • Site-to-Site-Link
      • Easy-Example
    • Permissions
    • Roles and Permissions
    • Database Tables
      • Activity Table
    • Disciple.Tools Translation
    • Revisions
      • v1.0.0-dev-changes
      • v1.0
  • Hosting
    • 404 Errors on new install
    • CRON
    • Hosting on WPEngine
    • Backups
    • Single Site or MultiSite
  • Disciple.Tools Development Setup
    • LocalWP
    • Mobile App Setup
    • Unit Tests
    • Cypress Tests
    • D.T on Docker Setup
    • Gulp - CSS and JS
  • Code Contribution
    • Theme Contribution Guidelines
    • How to Correctly Contribute to the Disciple Tools Repository
    • How to Translate Your Plugin
  • Style Guide
  • Disciple.Tools Code of Conduct
Powered by GitBook
On this page
  • Get Settings
  • Return

Was this helpful?

Edit on Git
  1. Theme Core
  2. API - Other

Settings

PreviousLocationsNextHooks

Last updated 2 years ago

Was this helpful?

Get Settings

Get

Return

(object) the settings object

  • available_translations: list of languages available for the user to select

  • post_types: list of post types and the post type settings. See

Example format:

{
  "available_translations":[
    {"language":"en_US","english_name":"English (United States)","native_name":"English (United States)","site_default":true},
    {"language":"am_ET","native_name":"Amharic (Ethiopia)","english_name":"Amharic (Ethiopia)","site_default":false},
    //etc
  ],
  "post_types": {
    "peoplegroups": {}, //see post type settings
    "contacts": {},
    "groups": {}
    //etc
  },
  "plugins": {
    "disciple-tools-dashboard": {
      "name": "Disciple.Tools - Dashboard",
      "plugin_url": "http://multisite.local/wp-content/plugins/disciple-tools-dashboard/",
      "version":  "1.0.5"
    },
    "disciple-tools-trainings": {...},
    //etc  
  }
}
https://example.com/wp-json/dt-core/v1/settings
Post Type Settings