PluginProbe
Lasso Lite – Affiliate Link Manager & Product Displays / 152
Lasso Lite – Affiliate Link Manager & Product Displays v152
157 155 156 154 153 152 151 150 149 148 trunk 0.9.9 104 105 106 107 108 109 110 111 112 113 114 115 116 All 56 releases
simple-urls / plugin.php

plugin.php in Lasso Lite – Affiliate Link Manager & Product Displays 152, at plugin.php

50 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Lasso Lite
4 * Plugin URI: https://getlasso.co/?utm_source=SimpleURLs&utm_medium=WP
5 * Description: Lasso Lite (formerly SimpleURLs) is a complete URL management system that allows you to create, manage, and track outbound links from your site using custom post types and 301 redirects.
6 * Author: Lasso
7 * Author URI: https://getlasso.co/?utm_source=SimpleURLs&utm_medium=WP
8 * Version: 152
9
10 * Text Domain: simple-urls
11 * Domain Path: /languages
12
13 * License: GNU General Public License v2.0 (or later)
14 * License URI: http://www.opensource.org/licenses/gpl-license.php
15 *
16 * @package simple-urls
17 */
18
19 use LassoLite\Admin\Constant;
20 use LassoLite\Classes\Enum;
21 use LassoLite\Classes\Helper;
22 use LassoLite\Classes\License;
23 use LassoLite\Pages\Hook;
24
25 // ? ==============================================================================================
26 // ? WE SHOULD UPDATE THE VERSION NUMBER HERE AS WELL WHEN RELEASING A NEW VERSION
27 define( 'LASSO_LITE_VERSION', '152' );
28 // ? ==============================================================================================
29
30 function activate_lasso_lite() {
31 update_option( Enum::LASSO_LITE_ACTIVE, 1 );
32 $license_active = License::get_license_status();
33 if ( $license_active === false ) {
34 Helper::update_option( Constant::LASSO_OPTION_DISMISS_PROMOTIONS, '0' );
35 Helper::update_option( Constant::LASSO_OPTION_AFFILIATE_PROMOTIONS, '1' );
36 }
37 Hook::lasso_register_connect_snippet_rewrite();
38 flush_rewrite_rules();
39 }
40
41 function deactivate_lasso_lite() {
42 Helper::update_option( Enum::IS_PRE_POPULATED_AMAZON_API, 0 );
43 flush_rewrite_rules();
44 }
45
46 register_activation_hook( __FILE__, 'activate_lasso_lite' );
47 register_deactivation_hook( __FILE__, 'deactivate_lasso_lite' );
48
49 require_once plugin_dir_path( __FILE__ ) . '/simple-urls.php';
50