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