| 1 |
<?php |
| 2 |
defined( 'ABSPATH' ) OR exit; |
| 3 |
|
| 4 |
/** |
| 5 |
* ------------------------------------------------------------------------------------------------------------------ |
| 6 |
* @package trustedsite |
| 7 |
* @version 1.2.1 |
| 8 |
* Plugin Name: TrustedSite |
| 9 |
* Plugin URI: https://www.trustedsite.com/ |
| 10 |
* Description: Display TrustedSite trustmarks on your website to increase visitor confidence and conversion rates. |
| 11 |
* Author: TrustedSite |
| 12 |
* Version: 1.2.1 |
| 13 |
* ------------------------------------------------------------------------------------------------------------------ |
| 14 |
*/ |
| 15 |
|
| 16 |
if(defined('WP_INSTALLING') && WP_INSTALLING){ |
| 17 |
return; |
| 18 |
} |
| 19 |
define('TRUSTEDSITE_VERSION', '1.2.1'); |
| 20 |
|
| 21 |
add_action('activated_plugin','trustedsite_save_activation_error'); |
| 22 |
function trustedsite_save_activation_error(){ |
| 23 |
update_option('trustedsite_plugin_error', ob_get_contents()); |
| 24 |
} |
| 25 |
|
| 26 |
require_once('lib/Trustedsite.php'); |
| 27 |
register_activation_hook(__FILE__, 'Trustedsite::activate'); |
| 28 |
register_deactivation_hook(__FILE__, 'Trustedsite::deactivate'); |
| 29 |
register_uninstall_hook(__FILE__, 'Trustedsite::uninstall'); |
| 30 |
|
| 31 |
Trustedsite::install(); |
| 32 |
|