| 1 |
<?php |
| 2 |
/* |
| 3 |
Plugin Name: PlugVersions |
| 4 |
Description: it retains up to three versions when you update a plugin. It works also with premium and custom plugins. |
| 5 |
Author: Jose Mortellaro |
| 6 |
Author URI: https://josemortellaro.com |
| 7 |
Domain Path: /languages/ |
| 8 |
Text Domain: plugins-revisions |
| 9 |
Version: 0.0.1 |
| 10 |
*/ |
| 11 |
/* This program is free software; you can redistribute it and/or modify |
| 12 |
it under the terms of the GNU General Public License as published by |
| 13 |
the Free Software Foundation; either version 2 of the License, or |
| 14 |
(at your option) any later version. |
| 15 |
This program is distributed in the hope that it will be useful, |
| 16 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 |
GNU General Public License for more details. |
| 19 |
*/ |
| 20 |
defined( 'ABSPATH' ) || exit; // Exit if accessed directly |
| 21 |
|
| 22 |
//Definitions |
| 23 |
define( 'PLUGIN_REVISIONS_PLUGIN_DIR', untrailingslashit( dirname( __FILE__ ) ) ); |
| 24 |
define( 'PLUGIN_REVISIONS_PLUGIN_URL', untrailingslashit( plugins_url( '', __FILE__ ) ) ); |
| 25 |
|
| 26 |
if( is_admin() ){ |
| 27 |
require_once PLUGIN_REVISIONS_PLUGIN_DIR.'/admin/pr-admin.php'; |
| 28 |
} |
| 29 |
|