forked from tarekskr/uport-wordpress-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
wp-uport.php
47 lines (41 loc) · 1.26 KB
/
wp-uport.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
*
* @link https://github.com/raininja
* @since 0.1.0
* @package Uport_Wordpress_Plugin
*
* @wordpress-plugin
* Plugin Name: Uport WordPress Plugin
* Plugin URI: https://github.com/uport-project/uport-wordpress-plugin
* Description: This plugin is a bridge between WordPress and your decentralized world, through the uPort ecosystem.
* Version: 0.1.0
* Author: Dan Denkijin
* Author URI: https://github.com/raininja
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: uport-wordpress-plugin
*/
// this code is derivative of wp-qr-login-plugin
// also contains code from jwt-wp-auth
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
// Include the main uPortWordPress class.
if ( ! class_exists( 'uPortWordPress' ) ) {
include_once dirname( __FILE__ ) . '/includes/class-uportwordpress.php';
}
/**
* Main instance of uPortWordPress.
*
* Returns the main instance of UWP to prevent the need to use globals.
*
* @since 0.1.0
* @return uPortWordPress
*/
function UWP() {
return uPortWordPress::instance();
}
// Global for backwards compatibility.
$GLOBALS['uportwordpress'] = UWP();