-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwp-github-user.php
More file actions
32 lines (27 loc) · 780 Bytes
/
Copy pathwp-github-user.php
File metadata and controls
32 lines (27 loc) · 780 Bytes
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
<?php
/**
* Plugin Name: WP Github User
* Description: Simple Gutenberg Block to fetch user data from github.
* Author: Yahil
* Author URI: http://yahilmadakiya.github.io/
* Version: 1.0
* License: GPLv2+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: WP_Github_User
*
* @package WP_Github_User
*/
if ( ! defined( 'WP_GITHUB_USER_VER' ) ) {
define( 'WP_GITHUB_USER_VER', '0.1' );
}
if ( ! defined( 'WP_GITHUB_USER_DIR' ) ) {
define( 'WP_GITHUB_USER_DIR', __DIR__ );
}
if ( ! defined( 'WP_GITHUB_USER_URL' ) ) {
define( 'WP_GITHUB_USER_URL', plugin_dir_url( __FILE__ ) );
}
if ( ! defined( 'ABSPATH' ) ) {
return;
}
require_once WP_GITHUB_USER_DIR . '/trait-singleton.php';
require_once WP_GITHUB_USER_DIR . '/class-register-blocks.php';