PluginProbe
Lasso Lite – Affiliate Link Manager & Product Displays / 111
Lasso Lite – Affiliate Link Manager & Product Displays v111
158 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 All 57 releases
← All changes | admin/constant.php +4 -76 157111 View file →
@@ -26,15 +26,11 @@
26 26 const SENTRY_DSN = SENTRY_LITE_DSN;
27 27 const DEFAULT_THUMBNAIL = SIMPLE_URLS_URL . '/admin/assets/images/lasso-no-thumbnail.jpg';
28 28 const LASSO_URL = 'https://getlasso.co';
29 29 const LASSO_SUPPORT_URL = 'https://support.getlasso.co/';
30 - const LASSO_UPGRADE_URL = 'https://getlasso.co/upgrade/?utm_campaign=lite-upgrade&utm_source=lasso-lite&utm_medium=wordpress';
30 + const LASSO_UPGRADE_URL = 'https://getlasso.co/upgrade/';
31 31 const SITE_ID_KEY = 'site_id';
32 32
33 - const LASSO_PLUS_SIGNUP_URL = 'https://app.getlasso.co/signup/plus?utm_campaign=lite-upgrade&utm_source=lasso-lite&utm_medium=wordpress';
34 - const LASSO_AFFILIATE_PLUS_URL = 'https://app.getlasso.co/plus/';
35 - const LASSO_ANALYTICS_URL = 'https://app.getlasso.co/analytics/';
36 -
37 33 const DEFAULT_SETTINGS = array(
38 34 // ? display
39 35 'theme_name' => Enum::THEME_CACTUS,
40 36 'display_color_main' => 'black',
@@ -50,32 +46,22 @@
50 46 'lasso_affiliate_URL' => 'https://getlasso.co/',
51 47 'disclosure_text' => 'We earn a commission if you make a purchase, at no additional cost to you.',
52 48 'show_price' => true,
53 49 'show_disclosure' => true,
54 - 'enable_brag_mode' => true,
50 + 'enable_brag_mode' => false,
55 51 'badge_text' => '',
56 52
57 53 // ? amazon
58 - 'auto_monetize_amazon' => true,
59 54 'amazon_access_key_id' => '',
60 55 'amazon_secret_key' => '',
61 - 'amazon_creators_credential_id' => '',
62 - 'amazon_creators_secret' => '',
63 - 'amazon_creators_version' => '',
64 - 'amazon_creators_partner_tag' => '',
65 56 'amazon_tracking_id' => '',
66 57 'amazon_default_tracking_country' => 'us',
67 - 'amazon_pricing_daily' => true,
68 - 'auto_upgrade_eligible_links' => true,
69 58
70 59 // ? general
71 - 'license_serial' => '',
72 60 'general_disable_amazon_notifications' => false,
73 61 'general_disable_tooltip' => false,
74 62 'general_disable_notification' => false,
75 - 'general_enable_new_ui' => true,
76 63 'check_duplicate_link' => false,
77 - 'performance_event_tracking' => true,
78 64
79 65 // ? url detail
80 66 'enable_nofollow' => true,
81 67 'open_new_tab' => true,
@@ -83,14 +69,13 @@
83 69
84 70 Enum::SUPPORT_ENABLED => false,
85 71 Enum::IS_SUBSCRIBE => false,
86 72 Enum::EMAIL_SUPPORT => '',
87 - Enum::CUSTOMER_FLOW_ENABLED => false,
88 73 );
89 74
90 75 const LASSO_INTERCOM_APP_ID = 'az01idfr';
91 76 const JWT_SECRET_KEY = '6KpRcC60EgicHWhyEIqj';
92 - const LASSO_LINK = 'https://lasso.link';
77 + const LASSO_LINK = 'https://lasso.link/';
93 78 const SSL_VERIFY = true;
94 79 const TIME_OUT = 30;
95 80
96 81 const LASSO_AMAZON_PRODUCTS_DB = 'lasso_lite_amazon_products';
@@ -97,36 +82,11 @@
97 82 const LASSO_POST_TYPE = 'surl';
98 83 const LASSO_BRAND = 'Lasso';
99 84 const LASSO_AMAZON_PRODUCT_TYPE = 'Amazon Product';
100 85 const LASSO_CATEGORY = 'lasso-lite-cat';
86 +
101 87 const LASSO_PRO_POST_TYPE = 'lasso-urls';
102 88
103 - const LASSO_OPTION_REVIEW_ALLOW = 'review_allow_notification';
104 - const LASSO_OPTION_REVIEW_SNOOZE = 'review_snooze';
105 - const LASSO_OPTION_REVIEW_LINK_COUNT = 'review_link_count';
106 - const LASSO_OPTION_AMAZON_CREDENTIALS_NOTICE_DISMISSED = 'dismiss_amazon_credentials_update_notice';
107 - /** Second dismiss; banner hides only when both dismiss flags are set. */
108 - const LASSO_OPTION_AMAZON_CREDENTIALS_NOTICE_DISMISSED_FINAL = 'dismiss_amazon_credentials_update_notice_final';
109 - const LASSO_OPTION_AMAZON_CREDENTIALS_UPDATED = 'updated_amazon_credentials_notice';
110 - const LASSO_OPTION_AMAZON_CREATORS_VERIFIED_SIGNATURE = 'amazon_creators_verified_signature';
111 - const LASSO_OPTION_DISMISS_PERFORMANCE_NOTICE = 'dismiss_performance_notice';
112 - const LASSO_LITE_NONCE = 'simple-urls-nonce';
113 - const LASSO_OPTION_AFFILIATE_PROMOTIONS = 'affiliate_promotions';
114 - const LASSO_OPTION_DISMISS_PROMOTIONS = 'dismiss_aff_promotions_notice';
115 - const LASSO_OPTION_IS_CONNECTED_AFFILIATE = 'is_connected_aff';
116 - const LASSO_CHECKOUT_URL_DEFAULT = 'https://getlasso.co/upgrade/?utm_campaign=lite-upgrade&utm_source=lasso-lite&utm_medium=wordpress';
117 -
118 - /** Option keys (not merged into lassolite_settings) for realtime click queue + secrets. */
119 - const OPTION_REALTIME_CHANNEL_ID = 'lasso_lite_realtime_channel_id';
120 - const OPTION_REALTIME_INGEST_SECRET = 'lasso_lite_realtime_ingest_secret';
121 - const OPTION_REALTIME_CLICK_QUEUE = 'lasso_lite_realtime_click_queue';
122 -
123 - /** Default Hub app URL; use {@see self::get_lasso_hub_url()} for the effective base URL. */
124 - const LASSO_HUB_URL = 'https://app.getlasso.co';
125 - const LASSO_ACCOUNT_EMAIL = 'lasso_account_email';
126 - const LASSO_ACCOUNT_API_KEY = 'lasso_account_api_key';
127 - const LASSO_ACCOUNT_USER_ID = 'lasso_account_user_id';
128 -
129 89 const BLOCK_CUSTOMIZE = array(
130 90 'single' => array(
131 91 'type' => 'single',
132 92 'name' => 'Single Product Displays',
@@ -217,37 +177,5 @@
217 177 'rating',
218 178 ),
219 179 'notice' => 'For a detailed list of all customization options, visit our <a href="https://support.getlasso.co/en/articles/4575092-shortcode-reference-guide" target="_blank">Shortcode Reference Guide</a>.',
220 180 );
221 -
222 - /**
223 - * Hub base URL without trailing slash. Override via `LASSO_LITE_HUB_URL` (wp-config.php) or `lasso_lite_hub_url`.
224 - *
225 - * @return string
226 - */
227 - public static function get_lasso_hub_url() {
228 - $url = self::LASSO_HUB_URL;
229 - if ( defined( 'LASSO_LITE_HUB_URL' ) && is_string( LASSO_LITE_HUB_URL ) && LASSO_LITE_HUB_URL !== '' ) {
230 - $url = LASSO_LITE_HUB_URL;
231 - }
232 - if ( function_exists( 'apply_filters' ) ) {
233 - $url = (string) apply_filters( 'lasso_lite_hub_url', $url );
234 - }
235 - return rtrim( $url, '/' );
236 - }
237 -}
238 -
239 -// Path for vanity JS served by the plugin and its source file location
240 -if ( ! defined( 'LASSO_SNIPPET_VANITY_PATH_LITE' ) ) {
241 - define( 'LASSO_SNIPPET_VANITY_PATH_LITE', '/js/snippet.min.js' );
242 -}
243 -if ( ! defined( 'LASSO_CONNECT_SNIPPET_FILE_LITE' ) ) {
244 - define( 'LASSO_CONNECT_SNIPPET_FILE_LITE', SIMPLE_URLS_PLUGIN_PATH . '/admin/assets/js/connect-snippet.min.js' );
245 -}
246 -
247 -if ( ! defined( 'LASSO_BEACON_VANITY_PATH' ) ) {
248 - define( 'LASSO_BEACON_VANITY_PATH', '/js/e' );
249 -}
250 -
251 -if ( ! defined( 'LASSO_BEACON_QUERY' ) ) {
252 - define( 'LASSO_BEACON_QUERY', 'lasso_js_e' );
253 181 }