folders
Last commit date
assets
6 years ago
includes
6 years ago
templates
6 years ago
folders.php
6 years ago
readme.txt
6 years ago
folders.php
42 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Plugin Name: Folders |
| 4 | * Description: Arrange media, pages, custom post types and posts into folders |
| 5 | * Version: 2.3.5 |
| 6 | * Author: Premio |
| 7 | * Author URI: https://premio.io/downloads/folders/ |
| 8 | */ |
| 9 | |
| 10 | defined('ABSPATH') or wp_die('Nope, not accessing this'); |
| 11 | |
| 12 | if(!defined("WCP_FOLDERS_PLUGIN_FILE")) { |
| 13 | define('WCP_FOLDERS_PLUGIN_FILE', __FILE__); |
| 14 | } |
| 15 | if(!defined("WCP_FOLDERS_PLUGIN_BASE")) { |
| 16 | define('WCP_FOLDERS_PLUGIN_BASE', plugin_basename(WCP_FOLDERS_PLUGIN_FILE)); |
| 17 | } |
| 18 | if(!defined("WCP_FOLDER")) { |
| 19 | define('WCP_FOLDER', 'folders'); |
| 20 | } |
| 21 | if(!defined("WCP_FOLDER_VAR")) { |
| 22 | define('WCP_FOLDER_VAR', 'folders_settings'); |
| 23 | } |
| 24 | if(!defined("WCP_DS")) { |
| 25 | define("WCP_DS", DIRECTORY_SEPARATOR); |
| 26 | } |
| 27 | if(!defined("WCP_FOLDER_URL")) { |
| 28 | define('WCP_FOLDER_URL', plugin_dir_url(__FILE__)); |
| 29 | } |
| 30 | if(!defined("WCP_FOLDER_VERSION")) { |
| 31 | define('WCP_FOLDER_VERSION', "2.3.5"); |
| 32 | } |
| 33 | |
| 34 | include_once plugin_dir_path(__FILE__)."includes/folders.class.php"; |
| 35 | register_activation_hook( __FILE__, array( 'WCP_Folders', 'activate' ) ); |
| 36 | WCP_Folders::get_instance(); |
| 37 | |
| 38 | /* Affiliate Class*/ |
| 39 | if(is_admin()) { |
| 40 | include_once plugin_dir_path(__FILE__)."includes/class-affiliate.php"; |
| 41 | include_once plugin_dir_path(__FILE__) . "includes/class-review-box.php"; |
| 42 | } |