Temporary Login Without Password - Version 1.6.11

Version Description

Download this release

Release Info

Developer storeapps
Plugin Icon 128x128 Temporary Login Without Password
Version 1.6.11
Comparing to
See all releases

Code changes from version 1.6.10 to 1.6.11

includes/class-wp-temporary-login-without-password-common.php CHANGED
@@ -127,7 +127,7 @@ class Wp_Temporary_Login_Without_Password_Common {
127
  *
128
  * @return array|int|WP_Error
129
  */
130
- public static function update_user( $user_id = 0, $data ) {
131
 
132
  if ( false === Wp_Temporary_Login_Without_Password_Common::can_manage_wtlwp() || ( 0 === $user_id ) ) {
133
  return 0;
@@ -1123,4 +1123,36 @@ class Wp_Temporary_Login_Without_Password_Common {
1123
 
1124
  return $request_uri;
1125
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1126
  }
127
  *
128
  * @return array|int|WP_Error
129
  */
130
+ public static function update_user( $user_id = 0, $data = array()) {
131
 
132
  if ( false === Wp_Temporary_Login_Without_Password_Common::can_manage_wtlwp() || ( 0 === $user_id ) ) {
133
  return 0;
1123
 
1124
  return $request_uri;
1125
  }
1126
+
1127
+ /**
1128
+ * Get utm tracking url
1129
+ *
1130
+ * @param array $utm_args
1131
+ *
1132
+ * @return mixed|string
1133
+ *
1134
+ * @since 1.6.11
1135
+ */
1136
+ public static function get_utm_tracking_url( $utm_args = array() ) {
1137
+
1138
+ $url = ! empty( $utm_args['url'] ) ? $utm_args['url'] : 'https://storeapps.org/';
1139
+ $utm_source = ! empty( $utm_args['utm_source'] ) ? $utm_args['utm_source'] : 'in_app';
1140
+ $utm_medium = ! empty( $utm_args['utm_medium'] ) ? $utm_args['utm_medium'] : 'tlwp';
1141
+ $utm_campaign = ! empty( $utm_args['utm_campaign'] ) ? $utm_args['utm_campaign'] : 'sa_upsell';
1142
+
1143
+ if ( ! empty( $utm_source ) ) {
1144
+ $url = add_query_arg( 'utm_source', $utm_source, $url );
1145
+ }
1146
+
1147
+ if ( ! empty( $utm_medium ) ) {
1148
+ $url = add_query_arg( 'utm_medium', $utm_medium, $url );
1149
+ }
1150
+
1151
+ if ( ! empty( $utm_campaign ) ) {
1152
+ $url = add_query_arg( 'utm_campaign', $utm_campaign, $url );
1153
+ }
1154
+
1155
+ return $url;
1156
+
1157
+ }
1158
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: temporary access, developer access, passwordless login, magic pin, secure login
5
  Requires at least: 3.0.1
6
  Tested up to: 5.7
7
- Stable tag: 1.6.10
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -159,6 +159,11 @@ Yes, you can use a fake email address or your email address to generate temporar
159
 
160
  == Changelog ==
161
 
 
 
 
 
 
162
  **1.6.10 [2020-03-19]**
163
 
164
  * New: Set default redirect after login option
4
  Tags: temporary access, developer access, passwordless login, magic pin, secure login
5
  Requires at least: 3.0.1
6
  Tested up to: 5.7
7
+ Stable tag: 1.6.11
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
159
 
160
  == Changelog ==
161
 
162
+ **1.6.11 [2020-04-08]**
163
+
164
+ * Update: PHP 8 compatibility check
165
+ * Fix: Deprecated: Required parameter $data follows optional parameter `$user_id` in `temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php on line 130`
166
+
167
  **1.6.10 [2020-03-19]**
168
 
169
  * New: Set default redirect after login option
templates/other-plugins.php CHANGED
@@ -16,8 +16,14 @@ $active_plugins = $tlwp_tracker::get_active_plugins();
16
  $inactive_plugins = $tlwp_tracker::get_inactive_plugins();
17
  $all_plugins = $tlwp_tracker::get_plugins();
18
 
19
- $storeapps_url = "https://storeapps.org?utm_source=tlwp&utm_medium=in_app&utm_campaign=sa_promotion";
20
- $ig_url = "https://icegram.com?utm_source=tlwp&utm_medium=in_app&utm_campaign=ig_promotion";
 
 
 
 
 
 
21
 
22
  $plugins = array(
23
 
@@ -56,6 +62,7 @@ $plugins = array(
56
  'install_url' => $ig_install_url,
57
  'plugin_url' => 'https://wordpress.org/plugins/icegram/',
58
  ),
 
59
  array(
60
  'title' => __( 'Rainmaker', 'temporary-login-without-password' ),
61
  'logo' => 'https://ps.w.org/icegram-rainmaker/assets/icon-128x128.png',
@@ -63,17 +70,74 @@ $plugins = array(
63
  'name' => 'icegram-rainmaker/icegram-rainmaker.php',
64
  'install_url' => $rainmaker_install_url,
65
  'plugin_url' => 'https://wordpress.org/plugins/icegram-rainmaker/',
66
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
 
 
 
 
 
 
 
 
 
 
68
 
69
- );
 
 
 
 
 
 
 
 
70
 
 
 
 
 
 
 
 
 
 
 
 
 
71
 
72
  ?>
73
 
74
  <div class="container flex flex-wrap w-full mt-4 mb-7">
75
  <div class="block mt-1 text-center">
76
- <h3 class="text-2xl font-bold leading-9 text-gray-700 sm:truncate mb-3 text-center"><?php echo sprintf('Other awesome plugins from same author (<a href="%s" target="_blank">StoreApps</a> & <a href="%s" target="_blank">Icegram</a>)', 'https://storeapps.org', 'https://icegram.com'); ?></h3>
77
  </div>
78
  <div class="grid w-full grid-cols-3 ">
79
  <?php foreach ( $plugins as $ig_plugin ) { ?>
@@ -112,14 +176,18 @@ $plugins = array(
112
  <div class="flex justify-center w-1/3 py-3 md:pr-4">
113
  <span class="rounded-md shadow-sm">
114
  <?php if ( ! in_array( $ig_plugin['name'], $active_plugins ) ) { ?>
115
- <a href="<?php echo esc_url( $ig_plugin['install_url'] ); ?>">
116
  <?php
117
  }
118
 
119
  if ( ! in_array( $ig_plugin['name'], $all_plugins ) ) {
120
  ?>
121
  <button type="button" class="inline-flex justify-center w-full px-4 py-2 text-sm font-medium leading-5 text-white transition duration-150 ease-in-out bg-white bg-green-600 border border-transparent rounded-md hover:bg-green-500 focus:outline-none focus:shadow-outline-blue">
122
- <?php echo esc_html__( 'Install', 'email-subscribers' ); ?> </button>
 
 
 
 
123
  <?php } elseif ( in_array( $ig_plugin['name'], $inactive_plugins ) ) { ?>
124
  <button type="button" class="inline-flex justify-center w-full px-4 py-2 text-sm font-medium leading-5 text-white transition duration-150 ease-in-out bg-white bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:shadow-outline-blue">
125
  <?php echo esc_html__( 'Activate', 'email-subscribers' ); ?> </button>
16
  $inactive_plugins = $tlwp_tracker::get_inactive_plugins();
17
  $all_plugins = $tlwp_tracker::get_plugins();
18
 
19
+ $storeapps_url = Wp_Temporary_Login_Without_Password_Common::get_utm_tracking_url();
20
+
21
+ $args = array(
22
+ 'url' => 'https://icegram.com',
23
+ 'utm_campaign' => 'ig_upsell'
24
+ );
25
+
26
+ $ig_url = Wp_Temporary_Login_Without_Password_Common::get_utm_tracking_url( $args );
27
 
28
  $plugins = array(
29
 
62
  'install_url' => $ig_install_url,
63
  'plugin_url' => 'https://wordpress.org/plugins/icegram/',
64
  ),
65
+
66
  array(
67
  'title' => __( 'Rainmaker', 'temporary-login-without-password' ),
68
  'logo' => 'https://ps.w.org/icegram-rainmaker/assets/icon-128x128.png',
70
  'name' => 'icegram-rainmaker/icegram-rainmaker.php',
71
  'install_url' => $rainmaker_install_url,
72
  'plugin_url' => 'https://wordpress.org/plugins/icegram-rainmaker/',
73
+ ),
74
+
75
+ array(
76
+ 'title' => __( 'Smart Coupons', 'temporary-login-without-password' ),
77
+ 'logo' => 'https://woocommerce.com/wp-content/uploads/2012/08/wc-icon-smart-coupons.png',
78
+ 'desc' => __( 'Create and send gift cards, bulk generate coupons, restrict coupons based on location, payment methods, auto-apply coupons using URLs, import-export and a lot more. The official WooCommerce coupons extension.', 'temporary-login-without-password' ),
79
+ 'name' => 'woocommerce-smart-coupons/woocommerce-smart-coupons.php',
80
+ 'install_url' => 'https://woocommerce.com/products/smart-coupons/',
81
+ 'plugin_url' => 'https://woocommerce.com/products/smart-coupons/',
82
+ 'is_premium' => true
83
+ ),
84
+ array(
85
+ 'title' => __( 'Affiliate for WooCommerce', 'temporary-login-without-password' ),
86
+ 'logo' => 'https://woocommerce.com/wp-content/uploads/2020/07/wc-icon-affiliate.png',
87
+ 'desc' => __( 'Set-up your own affiliate program easily. Manage your affiliates from a single dashboard, create marketing campaigns, make payout via PayPal, set up commission plans and do a lot more.', 'temporary-login-without-password' ),
88
+ 'name' => 'affiliate-for-woocommerce/affiliate-for-woocommerce.php',
89
+ 'install_url' => 'https://woocommerce.com/products/affiliate-for-woocommerce/',
90
+ 'plugin_url' => 'https://woocommerce.com/products/affiliate-for-woocommerce/',
91
+ 'is_premium' => true
92
+ ),
93
+ array(
94
+ 'title' => __( 'Email Customizer for WooCommerce', 'temporary-login-without-password' ),
95
+ 'logo' => 'https://woocommerce.com/wp-content/uploads/2020/07/wc-product-email-customizer.png',
96
+ 'desc' => __( 'Readymade, high-converting email templates to build your brand identity. Customize email text, change colors, add images and social media links, upsell products from within the email.', 'temporary-login-without-password' ),
97
+ 'name' => 'email-customizer-pro/email-customizer-pro.php',
98
+ 'install_url' => 'https://woocommerce.com/products/email-customizer-pro/',
99
+ 'plugin_url' => 'https://woocommerce.com/products/email-customizer-pro/',
100
+ 'is_premium' => true
101
+ ),
102
 
103
+ array(
104
+ 'title' => __( 'Cashier', 'temporary-login-without-password' ),
105
+ 'logo' => 'https://woocommerce.com/wp-content/uploads/2020/07/wc-icon-cashier.png',
106
+ 'desc' => __( 'Enable one-click checkout / direct checkout with Buy Now buttons, show frequently bought together items, redirect using Add to Cart links, display Cart Notices. A single plugin to optimize your checkout funnel.', 'temporary-login-without-password' ),
107
+ 'name' => 'cashier/cashier.php',
108
+ 'install_url' => 'https://woocommerce.com/products/cashier/',
109
+ 'plugin_url' => 'https://woocommerce.com/products/cashier/',
110
+ 'is_premium' => true
111
+ ),
112
 
113
+ array(
114
+ 'title' => __( 'Smart Offers', 'temporary-login-without-password' ),
115
+ 'logo' => 'https://www.storeapps.org/wp-content/uploads/2013/01/sa-icon-smart-offers.png',
116
+ 'desc' => __( 'Upsells, one click upsells, cross-sells, one time offers, giveaway, order bump, BOGO etc. Create and run unlimited offers in the sales funnel based on powerful targeting rules. Your 24*7 money-minting machine.', 'temporary-login-without-password' ),
117
+ 'name' => 'smart-offers/smart-offers.php',
118
+ 'install_url' => 'https://www.storeapps.org/product/smart-offers/?utm_source=tlwp-in-app-marketplace&utm_medium=button&utm_campaign=sa-plugins-promotion',
119
+ 'plugin_url' => 'https://www.storeapps.org/product/smart-offers/?utm_source=tlwp-in-app-marketplace&utm_medium=button&utm_campaign=sa-plugins-promotion',
120
+ 'is_premium' => true
121
+ ),
122
 
123
+ array(
124
+ 'title' => __( 'Custom Thank You Page', 'temporary-login-without-password' ),
125
+ 'logo' => 'https://www.storeapps.org/wp-content/uploads/2017/02/sa-icon-custom-thank-you-page-for-woocommerce.png',
126
+ 'desc' => __( 'Enable custom thank you page storewide or per product. Customize it using popular page builders and themes. Show offers, build list, redirect to any page, collect feedback and a lot more.', 'temporary-login-without-password' ),
127
+ 'name' => 'sa-custom-thank-you-pages/sa-custom-thank-you-pages.php',
128
+ 'install_url' => 'https://www.storeapps.org/product/custom-thank-you-page-for-woocommerce/?utm_source=tlwp-in-app-marketplace&utm_medium=button&utm_campaign=sa-plugins-promotion',
129
+ 'plugin_url' => 'https://www.storeapps.org/product/custom-thank-you-page-for-woocommerce/?utm_source=tlwp-in-app-marketplace&utm_medium=button&utm_campaign=sa-plugins-promotion',
130
+ 'is_premium' => true
131
+ ),
132
+
133
+
134
+ );
135
 
136
  ?>
137
 
138
  <div class="container flex flex-wrap w-full mt-4 mb-7">
139
  <div class="block mt-1 text-center">
140
+ <h3 class="text-2xl font-bold leading-9 text-gray-700 sm:truncate mb-3 text-center"><?php echo sprintf( 'Other awesome plugins from same author (<a href="%s" target="_blank">StoreApps</a> & <a href="%s" target="_blank">Icegram</a>)', $storeapps_url, $ig_url ); ?></h3>
141
  </div>
142
  <div class="grid w-full grid-cols-3 ">
143
  <?php foreach ( $plugins as $ig_plugin ) { ?>
176
  <div class="flex justify-center w-1/3 py-3 md:pr-4">
177
  <span class="rounded-md shadow-sm">
178
  <?php if ( ! in_array( $ig_plugin['name'], $active_plugins ) ) { ?>
179
+ <a href="<?php echo esc_url( $ig_plugin['install_url'] ); ?>" target="_blank">
180
  <?php
181
  }
182
 
183
  if ( ! in_array( $ig_plugin['name'], $all_plugins ) ) {
184
  ?>
185
  <button type="button" class="inline-flex justify-center w-full px-4 py-2 text-sm font-medium leading-5 text-white transition duration-150 ease-in-out bg-white bg-green-600 border border-transparent rounded-md hover:bg-green-500 focus:outline-none focus:shadow-outline-blue">
186
+ <?php if ( isset( $ig_plugin['is_premium'] ) && true === $ig_plugin['is_premium'] ) {
187
+ echo esc_html__( 'Buy Now', 'email-subscribers' );
188
+ } else {
189
+ echo esc_html__( 'Install', 'email-subscribers' );
190
+ } ?> </button>
191
  <?php } elseif ( in_array( $ig_plugin['name'], $inactive_plugins ) ) { ?>
192
  <button type="button" class="inline-flex justify-center w-full px-4 py-2 text-sm font-medium leading-5 text-white transition duration-150 ease-in-out bg-white bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:shadow-outline-blue">
193
  <?php echo esc_html__( 'Activate', 'email-subscribers' ); ?> </button>
temporary-login-without-password.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Temporary Login Without Password
4
  * Plugin URI: http://www.storeapps.org/create-secure-login-without-password-for-wordpress/
5
  * Description: Create a temporary login link with any role using which one can access to your sytem without username and password for limited period of time.
6
- * Version: 1.6.10
7
  * Author: StoreApps
8
  * Author URI: https://storeapps.org
9
  * Requires at least: 3.0.1
@@ -25,7 +25,7 @@ if ( ! defined( 'WPINC' ) ) {
25
  /**
26
  * Define constants
27
  */
28
- define( 'WTLWP_PLUGIN_VERSION', '1.6.10' );
29
  define( 'WTLWP_FEEDBACK_VERSION', '1.2.4' );
30
  define( 'WTLWP_PLUGIN_DIR', dirname( __FILE__ ) );
31
  define( 'WTLWP_PLUGIN_BASE_NAME', plugin_basename( __FILE__ ) );
3
  * Plugin Name: Temporary Login Without Password
4
  * Plugin URI: http://www.storeapps.org/create-secure-login-without-password-for-wordpress/
5
  * Description: Create a temporary login link with any role using which one can access to your sytem without username and password for limited period of time.
6
+ * Version: 1.6.11
7
  * Author: StoreApps
8
  * Author URI: https://storeapps.org
9
  * Requires at least: 3.0.1
25
  /**
26
  * Define constants
27
  */
28
+ define( 'WTLWP_PLUGIN_VERSION', '1.6.11' );
29
  define( 'WTLWP_FEEDBACK_VERSION', '1.2.4' );
30
  define( 'WTLWP_PLUGIN_DIR', dirname( __FILE__ ) );
31
  define( 'WTLWP_PLUGIN_BASE_NAME', plugin_basename( __FILE__ ) );