-
Notifications
You must be signed in to change notification settings - Fork 0
/
symlinked-plugin-branch.php
30 lines (26 loc) · 1.16 KB
/
symlinked-plugin-branch.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
<?php
/**
* Plugin Name: Symlinked Plugin Branch
* Plugin URI: https://github.com/josephfusco/symlinked-plugin-branch/
* GitHub Plugin URI: https://github.com/wp-graphql/wp-graphql
* Description: Easily identify the current git branch of your symlinked WordPress plugins.
* Version: 1.2.1
* Author: Joseph Fusco
* Author URI: https://josephfus.co/
* License: MIT
* Text Domain: symlinked-plugin-branch
*
* @package Symlinked_Plugin_Branch
*/
namespace Symlinked_Plugin_Branch;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
define( 'SYMLINKED_PLUGIN_BRANCH_FILE', __FILE__ );
define( 'SYMLINKED_PLUGIN_BRANCH_DIR', dirname( __FILE__ ) );
define( 'SYMLINKED_PLUGIN_BRANCH_URL', plugin_dir_url( __FILE__ ) );
define( 'SYMLINKED_PLUGIN_BRANCH_PATH', plugin_basename( SYMLINKED_PLUGIN_BRANCH_FILE ) );
define( 'SYMLINKED_PLUGIN_BRANCH_SLUG', dirname( plugin_basename( SYMLINKED_PLUGIN_BRANCH_FILE ) ) );
require SYMLINKED_PLUGIN_BRANCH_DIR . '/includes/utilities/functions.php';
require SYMLINKED_PLUGIN_BRANCH_DIR . '/includes/admin/callbacks.php';
require SYMLINKED_PLUGIN_BRANCH_DIR . '/includes/graphql/callbacks.php';