# simple-urls/110/plugin.php

Lasso Lite – Affiliate Link Manager &amp; Product Displays, version 110. 62 lines.

- Page: https://pluginprobe.com/plugins/simple-urls/110/code/plugin.php
- Raw: https://pluginprobe.com/plugins/simple-urls/110/raw/plugin.php
- Modified: 2022-08-04T20:50:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/simple-urls/110/code/plugin.php#L10-L20`.

```php
<?php
/**
 * Plugin Name: Lasso Lite (formerly Simple URLs)
 * Plugin URI: https://getlasso.co/?utm_source=SimpleURLs&utm_medium=WP
 * Description: Lasso Lite (formally Simple URLs) is a complete URL management system that allows you create, manage, and track outbound links from your site by using custom post types and 301 redirects.
 * Author: Lasso
 * Author URI: https://getlasso.co/?utm_source=SimpleURLs&utm_medium=WP
 * Version: 110

 * Text Domain: simple-urls
 * Domain Path: /languages

 * License: GNU General Public License v2.0 (or later)
 * License URI: http://www.opensource.org/licenses/gpl-license.php
 *
 * @package simple-urls
 */

use LassoLite\Classes\Enum;
use LassoLite\Classes\Helper;
use LassoLite\Classes\Init;

// ? ==============================================================================================
// ? WE SHOULD UPDATE THE VERSION NUMBER HERE AS WELL WHEN RELEASING A NEW VERSION
define( 'LASSO_LITE_VERSION', '110' );
// ? ==============================================================================================

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
define( "SIMPLE_URLS_SLUG", "surl" );
define( 'SIMPLE_URLS_DIR', plugin_dir_path( __FILE__ ) );
define( 'SIMPLE_URLS_URL', plugins_url( '', __FILE__ ) );
define( 'SIMPLE_URLS_PLUGIN_PATH', __DIR__ );

require_once SIMPLE_URLS_DIR . '/admin/constant.php';
require_once SIMPLE_URLS_DIR . DIRECTORY_SEPARATOR . 'autoload.php';
require_once SIMPLE_URLS_DIR . '/vendor-prefix/vendor/autoload.php';

// ? Sentry declaration
require_once SIMPLE_URLS_DIR . '/libs/lasso-lite/lasso-lite-sentry.php';

require_once SIMPLE_URLS_DIR . '/includes/class-simple-urls.php';
new Simple_Urls();

if ( is_admin() ) {
	require_once SIMPLE_URLS_DIR . '/includes/class-simple-urls-admin.php';
	new Simple_Urls_Admin();
}

new Init();

function activate_lasso_lite() {
	update_option( Enum::LASSO_LITE_ACTIVE, 1 );
}

function deactivate_lasso_lite() {
	Helper::update_option( Enum::IS_PRE_POPULATED_AMAZON_API, 0 );
}
register_activation_hook( __FILE__, 'activate_lasso_lite' );
register_deactivation_hook( __FILE__, 'deactivate_lasso_lite' );

```
