Identity Hub

Identity Hub & Structured Data

JSON-LD Output

On every frontend page, Cybermaps injects a <script type="application/ld+json"> block in <head> at priority 5:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "name": "Acme Corp",
  "url": "https://example.com",
  "logo": "https://example.com/logo.png",
  "sameAs": [
    "https://facebook.com/acmecorp",
    "https://twitter.com/acmecorp"
  ],
  "contactPoint": {
    "@type": "ContactPoint",
    "telephone": "+1-555-0123",
    "contactType": "customer service"
  }
}
</script>

Schema.org Types

5 categories, 28 types:

Category Types
Organization Organization, Corporation, NGO, EducationalOrganization, GovernmentOrganization, MedicalOrganization, SportsOrganization, Airline
Local Business LocalBusiness, ProfessionalService, LegalService, AccountingService, RealEstateAgent, MedicalBusiness, Dentist, GeneralContractor, HomeAndConstructionBusiness, AutomotiveBusiness
Food & Hospitality Restaurant, CafeOrCoffeeShop, BarOrPub, Hotel, LodgingBusiness
Retail Store, ShoppingCenter
Person Person

The SchemaRegistry class maintains this hierarchy. Developers can extend it via the cybermaps_schema_type_tree filter.

Structured Data in the Knowledge Graph

The /knowledge-graph.json endpoint uses the same Identity Hub data as the wp_head injection. Both share a single source of truth via IdentityHub::get_json_ld().

Whitelabel Branding

For agencies managing client sites:

  • Agency logo: Uploaded in Identity Hub settings, displayed on reports
  • Agency name / URL: Custom branding on all report outputs
  • Stealth Mode: Strips all Cybermaps attribution from reports: visible and hidden

REST API Access

The identity data is available at /wp-json/cybermaps/v1/identity (GET, no authentication required).