-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy patheasy-symlinks.php
46 lines (40 loc) · 1.28 KB
/
easy-symlinks.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
<?php
/**
* Plugin Name: Easy Symlinks
* Version: 1.0.3
* Plugin URI: http://wordpress.org/plugins/easy-symlinks
* Description: Easy symlinking tool in WP. Best used for non-command line users. This can only track symlinks created within the application and excludes symlinks created from the filesystem and command line. Best used in Pantheon dev environments in SFTP mode.
* Author: Carl Alberto
* Author URI: https://carlalberto.code.blog/
* Requires at least: 4.9
* Tested up to: 6.0.3
*
* Text Domain: easy-symlinks
* Domain Path: /lang/
*
* @package WordPress
* @author Carl Alberto
* @since 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Load plugin class files.
require_once 'includes/class-easy-symlinks.php';
require_once 'includes/class-easy-symlinks-settings.php';
require_once 'includes/lib/class-easy-symlinks-admin-api.php';
require_once 'includes/lib/class-easy-symlinks-functions.php';
/**
* Returns the main instance of Easy_Symlinks to prevent the need to use globals.
*
* @since 1.0.0
* @return object Easy_Symlinks
*/
function easy_symlinks() {
$instance = Easy_Symlinks::instance( __FILE__, '1.0.3' );
if ( is_null( $instance->settings ) ) {
$instance->settings = Easy_Symlinks_Settings::instance( $instance );
}
return $instance;
}
easy_symlinks();