-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwpgithubapi.php
More file actions
47 lines (41 loc) · 1.07 KB
/
wpgithubapi.php
File metadata and controls
47 lines (41 loc) · 1.07 KB
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
/**
* Plugin Name: WP GitHub API
* Plugin URI: https://github.com/ahmadawais/WPGitHubAPI
* Description: Shortcode to obtain resources from official GitHub API v3.
* Author: mrahmadawais, WPTie
* Author URI: http://AhmadAwais.com/
* Version: 0.0.8
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* GitHub Plugin URI: https://github.com/ahmadawais/WPGitHubAPI/
*
* @package WGA
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Define global constants.
*
* @since 0.0.2
*/
if ( ! defined( 'WGA_NAME' ) ) {
define( 'WGA_NAME', trim( dirname( plugin_basename( __FILE__ ) ), '/' ) );
}
if ( ! defined( 'WGA_DIR' ) ) {
define( 'WGA_DIR', WP_PLUGIN_DIR . '/' . WGA_NAME );
}
if ( ! defined( 'WGA_URL' ) ) {
define( 'WGA_URL', WP_PLUGIN_URL . '/' . WGA_NAME );
}
/**
* Class: WP_GitHub_API_Shortcodes.
*
* @since 1.0.0
*/
if ( file_exists( WGA_DIR . '/class/class-wp-github-api-shortcodes.php' ) ) {
require_once( WGA_DIR . '/class/class-wp-github-api-shortcodes.php' );
}
new WP_GitHub_API_Shortcodes();