Skip to content

Instantly share code, notes, and snippets.

@adamcapriola
Created April 13, 2015 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamcapriola/2debef867c4d2ce069aa to your computer and use it in GitHub Desktop.
Save adamcapriola/2debef867c4d2ce069aa to your computer and use it in GitHub Desktop.
<?php
/*
Plugin Name: Discourse WordPress Integration
Description: This plugin contains all of the functions that deal with integrating WordPress and Discourse.
Author: Adam Capriola
Version: 1.0
Author URI: https://meta.discourse.org/users/adamcapriola/activity
*/
// Discourse info
define( 'DISCOURSE_URL', 'http://discourse.example.com' ); // No trailing slash!
define( 'DISCOURSE_API_KEY', 'abc123' ); // Your API key for all users created + found here: http://discourse.example.com/admin/api
define( 'DISCOURSE_API_USERNAME', 'system' ); // Username of an administrator (system is a safe bet).
define( 'DISCOURSE_SSO_SECRET', 'super_duper_secret' ); // Your "sso secret" value created + found here: http://discourse.example.com/admin/site_settings/category/login
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment