Skip to main content

WordPress

Creating an OAuth Client in WordPress

  • Install this WP OAuth Server plugin
  • Go to Plugins > Plugin file editor
  • Click I understand on the warning
  • In select plugin to edit, select miniorange-oauth-20-server
  • Click select
  • In the right sidebar, click public > class-miniorange-oauth-20-server-public.php
  • Add this line of code: 'roles' => $user_info->roles
    • This line of code should be added below 'display_name' => $user_info->display_name (around line 447)
    • Make sure you add a comma after this line when you add the roles line
  • Click Save
  • In the left sidebar select miniOrange OAuth Server
    • ClickCreate OAuth 2.0 Client under OAuth Clients
    • Set Redirection URIs (example: https://realm-name.realms.tv/auth/wordpress)
      • Where you see “realm name” enter the name of your realm
    • Click Save
    • Copy the Client ID and Client Secret
  • Within your WordPress Admin Panel select Realms.tv
    • Click Add new
    • Add API key from your realm
    • OAuth Client
    • Click Publish

Creating a Webhook in WordPress

  • Webhooks are configured automatically through the Realms.tv plugin

Adding your realm to your WordPress Navigation

  • Within your WordPress Admin Panel click Appearance
  • Click Menus
  • Add a new realm menu point to menu bars of your choice

Connecting your WordPress to your realm

  • Go to the integration page within your realm
  • Select WordPress
  • Select No Sync, Soft Sync, or Hard Sync
  • Enter the API key from your realm
  • Enter your base URL (example: wordpress.com or wordpress.com/blog)
  • Enter the Client ID you previously copied
  • Enter the Client Secret you previously copied.
  • Click Save