Temporary Login Without Password - Version 1.8.0

Version Description

  • Update: WordPress 6.0.3 compatibility check
  • Update: Minor improvements
  • Update: POT file
  • Fix: PHP Fatal error: Uncaught Error: Call to undefined function get_current_screen() in some cases

=

Download this release

Release Info

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

Code changes from version 1.7.6 to 1.8.0

admin/class-wp-temporary-login-without-password-admin.php CHANGED
@@ -1,4 +1,8 @@
1
  <?php
 
 
 
 
2
 
3
  /**
4
  * Main Temporary Login Without Password Admin Class
@@ -51,11 +55,11 @@ class Wp_Temporary_Login_Without_Password_Admin {
51
  if ( $this->is_plugin_page() ) {
52
 
53
  if ( ! wp_style_is( 'tailwind-css', 'enqueued' ) ) {
54
- wp_enqueue_style( 'tailwind-css', plugin_dir_url( __FILE__ ) . 'dist/main.css', array(), $this->version, 'all' );
55
  }
56
 
57
  if ( ! wp_style_is( $this->plugin_name, 'enqueued' ) ) {
58
- wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/wp-temporary-login-without-password-admin.css', array(), $this->version, 'all' );
59
  }
60
 
61
  if ( ! wp_style_is( 'jquery-ui-css', 'enqueued' ) ) {
@@ -81,11 +85,11 @@ class Wp_Temporary_Login_Without_Password_Admin {
81
  if ( $this->is_plugin_page() ) {
82
 
83
  if ( ! wp_script_is( $this->plugin_name, 'enqueued' ) ) {
84
- wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/wp-temporary-login-without-password-admin.js', array( 'jquery' ), $this->version, false );
85
  }
86
 
87
  if ( ! wp_script_is( 'clipboardjs', 'enqueued' ) ) {
88
- wp_enqueue_script( 'clipboardjs', plugin_dir_url( __FILE__ ) . 'js/clipboard.min.js', array( 'jquery' ), $this->version, false );
89
  }
90
 
91
  if ( ! wp_script_is( 'jquery', 'enqueued' ) ) {
@@ -110,7 +114,7 @@ class Wp_Temporary_Login_Without_Password_Admin {
110
  }
111
 
112
  if ( ! wp_script_is( 'tlwp-common', 'enqueued' ) ) {
113
- wp_enqueue_script( 'tlwp-common', plugin_dir_url( __FILE__ ) . 'js/common.js', array( 'jquery' ), $this->version, false );
114
 
115
  $data = array(
116
  'is_temporary_login' => $is_temporary_login
@@ -294,11 +298,11 @@ class Wp_Temporary_Login_Without_Password_Admin {
294
 
295
  update_option( 'tlwp_settings', maybe_serialize( $tlwp_settings ), true );
296
 
297
- $result = array(
298
- 'status' => 'success',
299
- 'message' => 'settings_updated',
300
- 'tab' => 'settings',
301
- );
302
 
303
  $redirect_link = Wp_Temporary_Login_Without_Password_Common::get_redirect_link( $result );
304
 
@@ -605,17 +609,17 @@ class Wp_Temporary_Login_Without_Password_Admin {
605
  }
606
 
607
  ?>
608
- <style>
609
- #wpadminbar .temporay-access-mode-active > .ab-item {
610
- color: #fff;
611
- background-color: #ffba00;
612
- }
613
-
614
- #wpadminbar .temporay-access-mode-active:hover > .ab-item, #wpadminbar .temporay-access-mode-active:hover > .ab-item {
615
- background-color: rgba(203, 144, 0, 1) !important;
616
- color: #fff !important;
617
- }
618
- </style>
619
  <?php
620
  }
621
 
@@ -635,6 +639,7 @@ class Wp_Temporary_Login_Without_Password_Admin {
635
  'show_review_notice',
636
  'tlwp_display_admin_notices',
637
  'tlwp_show_feature_survey',
 
638
  );
639
 
640
  $filters = array(
@@ -676,6 +681,30 @@ class Wp_Temporary_Login_Without_Password_Admin {
676
 
677
  }
678
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
679
  /**
680
  * Update plugin notice
681
  *
@@ -694,7 +723,6 @@ class Wp_Temporary_Login_Without_Password_Admin {
694
  }
695
  }
696
 
697
-
698
  /**
699
  * Update admin footer text
700
  *
@@ -705,13 +733,9 @@ class Wp_Temporary_Login_Without_Password_Admin {
705
  * @since 1.6.13
706
  */
707
  public function update_admin_footer_text( $footer_text ) {
708
-
709
  if ( $this->is_plugin_page() ) {
710
-
711
- $wordpress_url = 'https://www.wordpress.org';
712
- $developer_url = 'https://www.storeapps.org';
713
-
714
- $footer_text = sprintf( __( '<span id="footer-thankyou">Thank you for creating with <a href="%1$s" target="_blank">WordPress</a> | Temporary Login Without Password <b>%2$s</b>. Developed by team <a href="%3$s" target="_blank">Store Apps</a></span>', 'temporary-login-without-password' ), $wordpress_url, WTLWP_PLUGIN_VERSION, $developer_url );
715
  }
716
 
717
  return $footer_text;
1
  <?php
2
+ // Exit if accessed directly.
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
 
7
  /**
8
  * Main Temporary Login Without Password Admin Class
55
  if ( $this->is_plugin_page() ) {
56
 
57
  if ( ! wp_style_is( 'tailwind-css', 'enqueued' ) ) {
58
+ wp_enqueue_style( 'tailwind-css', plugin_dir_url( __FILE__ ) . 'dist/main.css', array(), WTLWP_PLUGIN_VERSION, 'all' );
59
  }
60
 
61
  if ( ! wp_style_is( $this->plugin_name, 'enqueued' ) ) {
62
+ wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/wp-temporary-login-without-password-admin.css', array(), WTLWP_PLUGIN_VERSION, 'all' );
63
  }
64
 
65
  if ( ! wp_style_is( 'jquery-ui-css', 'enqueued' ) ) {
85
  if ( $this->is_plugin_page() ) {
86
 
87
  if ( ! wp_script_is( $this->plugin_name, 'enqueued' ) ) {
88
+ wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/wp-temporary-login-without-password-admin.js', array( 'jquery' ), WTLWP_PLUGIN_VERSION, false );
89
  }
90
 
91
  if ( ! wp_script_is( 'clipboardjs', 'enqueued' ) ) {
92
+ wp_enqueue_script( 'clipboardjs', plugin_dir_url( __FILE__ ) . 'js/clipboard.min.js', array( 'jquery' ), WTLWP_PLUGIN_VERSION, false );
93
  }
94
 
95
  if ( ! wp_script_is( 'jquery', 'enqueued' ) ) {
114
  }
115
 
116
  if ( ! wp_script_is( 'tlwp-common', 'enqueued' ) ) {
117
+ wp_enqueue_script( 'tlwp-common', plugin_dir_url( __FILE__ ) . 'js/common.js', array( 'jquery' ), WTLWP_PLUGIN_VERSION, false );
118
 
119
  $data = array(
120
  'is_temporary_login' => $is_temporary_login
298
 
299
  update_option( 'tlwp_settings', maybe_serialize( $tlwp_settings ), true );
300
 
301
+ $result = array(
302
+ 'status' => 'success',
303
+ 'message' => 'settings_updated',
304
+ 'tab' => 'settings',
305
+ );
306
 
307
  $redirect_link = Wp_Temporary_Login_Without_Password_Common::get_redirect_link( $result );
308
 
609
  }
610
 
611
  ?>
612
+ <style>
613
+ #wpadminbar .temporay-access-mode-active > .ab-item {
614
+ color: #fff;
615
+ background-color: #ffba00;
616
+ }
617
+
618
+ #wpadminbar .temporay-access-mode-active:hover > .ab-item, #wpadminbar .temporay-access-mode-active:hover > .ab-item {
619
+ background-color: rgba(203, 144, 0, 1) !important;
620
+ color: #fff !important;
621
+ }
622
+ </style>
623
  <?php
624
  }
625
 
639
  'show_review_notice',
640
  'tlwp_display_admin_notices',
641
  'tlwp_show_feature_survey',
642
+ 'in_app_offer',
643
  );
644
 
645
  $filters = array(
681
 
682
  }
683
 
684
+ /**
685
+ * Function to show in app offer - if available.
686
+ *
687
+ * @since 1.8.0
688
+ */
689
+ public function wtlwp_may_be_show_sa_in_app_offer() {
690
+ if ( ! class_exists( 'SA_In_App_Offer' ) && file_exists( plugin_dir_path( dirname( __FILE__ ) ) . 'includes/sa-includes/class-sa-in-app-offer.php' ) ) {
691
+ include_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/sa-includes/class-sa-in-app-offer.php';
692
+
693
+ $get_page = ( ! empty( $_GET['page'] ) ) ? sanitize_text_field( wp_unslash( $_GET['page'] ) ) : ''; // phpcs:ignore
694
+
695
+ $args = array(
696
+ 'file' => plugin_dir_path( dirname( __FILE__ ) ) . 'includes/sa-includes/',
697
+ 'prefix' => 'wtlwp', // prefix/slug of your plugin.
698
+ 'option_name' => 'sa_wtlwp_offer_halloween_2022',
699
+ 'campaign' => 'sa_halloween_2022',
700
+ 'start' => '2022-10-28 13:30:00',
701
+ 'end' => '2022-11-03 06:00:00',
702
+ 'is_plugin_page' => ( ! empty( $get_page ) && 'wp-temporary-login-without-password' === $get_page ) ? true : false, // page where you want to show offer, do not send this if no plugin page is there and want to show offer on Products page.
703
+ );
704
+ $sa_offer = SA_In_App_Offer::get_instance( $args );
705
+ }
706
+ }
707
+
708
  /**
709
  * Update plugin notice
710
  *
723
  }
724
  }
725
 
 
726
  /**
727
  * Update admin footer text
728
  *
733
  * @since 1.6.13
734
  */
735
  public function update_admin_footer_text( $footer_text ) {
 
736
  if ( $this->is_plugin_page() ) {
737
+ /* translators: %1$s: link to plugin on WordPress %2$s: Plugin version %3$s: StoreApps link */
738
+ $footer_text = sprintf( __( '<span id="footer-thankyou">Thank you for creating with <a href="%1$s" target="_blank">WordPress</a> | Temporary Login Without Password <strong>%2$s</strong>. Developed by team <a href="%3$s" target="_blank">StoreApps</a></span>', 'temporary-login-without-password' ), 'https://wordpress.org/plugins/temporary-login-without-password/', WTLWP_PLUGIN_VERSION, 'https://www.storeapps.org/' );
 
 
 
739
  }
740
 
741
  return $footer_text;
includes/class-wp-temporary-login-without-password-common.php CHANGED
@@ -1093,6 +1093,9 @@ class Wp_Temporary_Login_Without_Password_Common {
1093
  'users_page_wp-temporary-login-without-password-network'
1094
  );
1095
 
 
 
 
1096
  $screen = get_current_screen();
1097
 
1098
  if ( in_array( $screen->id, $pages ) ) {
1093
  'users_page_wp-temporary-login-without-password-network'
1094
  );
1095
 
1096
+ if ( ! function_exists( 'get_current_screen' ) ) {
1097
+ require_once ABSPATH . '/wp-admin/includes/screen.php';
1098
+ }
1099
  $screen = get_current_screen();
1100
 
1101
  if ( in_array( $screen->id, $pages ) ) {
includes/class-wp-temporary-login-without-password.php CHANGED
@@ -123,6 +123,9 @@ class Wp_Temporary_Login_Without_Password {
123
  $this->loader->add_action( 'in_plugin_update_message-temporary-login-without-password/temporary-login-without-password.php', $plugin_admin, 'in_plugin_update_message', 10, 2 );
124
 
125
  $this->loader->add_filter( 'admin_footer_text', $plugin_admin, 'update_admin_footer_text' );
 
 
 
126
  }
127
 
128
  /**
123
  $this->loader->add_action( 'in_plugin_update_message-temporary-login-without-password/temporary-login-without-password.php', $plugin_admin, 'in_plugin_update_message', 10, 2 );
124
 
125
  $this->loader->add_filter( 'admin_footer_text', $plugin_admin, 'update_admin_footer_text' );
126
+
127
+ $this->loader->add_action( 'wp_loaded', $plugin_admin, 'wtlwp_may_be_show_sa_in_app_offer' );
128
+
129
  }
130
 
131
  /**
includes/sa-includes/class-sa-in-app-offer.php ADDED
@@ -0,0 +1,254 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * StoreApps In app offer
4
+ *
5
+ * @category Class
6
+ * @author StoreApps
7
+ * @package StoreApps
8
+ * @version 1.1.0
9
+ */
10
+
11
+ if ( ! defined( 'ABSPATH' ) ) {
12
+ exit; // Exit if accessed directly.
13
+ }
14
+
15
+ /**
16
+ * Class for handling in app offer for StoreApps
17
+ */
18
+ class SA_In_App_Offer {
19
+
20
+ /**
21
+ * Variable to hold instance of this class
22
+ *
23
+ * @var $instance
24
+ */
25
+ private static $instance = null;
26
+
27
+ /**
28
+ * The plugin file
29
+ *
30
+ * @var string $plugin_file
31
+ */
32
+ public $plugin_file = '';
33
+
34
+ /**
35
+ * The plugin url
36
+ *
37
+ * @var string $plugin_file
38
+ */
39
+ public $plugin_url = '';
40
+
41
+ /**
42
+ * The prefix
43
+ *
44
+ * @var string $prefix
45
+ */
46
+ public $prefix = '';
47
+
48
+ /**
49
+ * The option name
50
+ *
51
+ * @var string $option_name
52
+ */
53
+ public $option_name = '';
54
+
55
+ /**
56
+ * The campaign
57
+ *
58
+ * @var string $campaign
59
+ */
60
+ public $campaign = '';
61
+
62
+ /**
63
+ * The start
64
+ *
65
+ * @var string $start
66
+ */
67
+ public $start = '';
68
+
69
+ /**
70
+ * The end
71
+ *
72
+ * @var string $end
73
+ */
74
+ public $end = '';
75
+
76
+ /**
77
+ * Is plugin page
78
+ *
79
+ * @var bool $end
80
+ */
81
+ public $is_plugin_page = false;
82
+
83
+ /**
84
+ * Constructor
85
+ *
86
+ * @param array $args Configuration.
87
+ */
88
+ public function __construct( $args ) {
89
+
90
+ $this->plugin_file = ( ! empty( $args['file'] ) ) ? $args['file'] : '';
91
+ $this->prefix = ( ! empty( $args['prefix'] ) ) ? $args['prefix'] : '';
92
+ $this->option_name = ( ! empty( $args['option_name'] ) ) ? $args['option_name'] : '';
93
+ $this->campaign = ( ! empty( $args['campaign'] ) ) ? $args['campaign'] : '';
94
+ $this->start = ( ! empty( $args['start'] ) ) ? $args['start'] : '';
95
+ $this->end = ( ! empty( $args['end'] ) ) ? $args['end'] : '';
96
+ $this->is_plugin_page = ( ! empty( $args['is_plugin_page'] ) ) ? $args['is_plugin_page'] : false;
97
+
98
+ add_action( 'admin_footer', array( $this, 'admin_styles_and_scripts' ) );
99
+ add_action( 'admin_notices', array( $this, 'in_app_offer' ) );
100
+ add_action( 'wp_ajax_' . $this->prefix . '_dismiss_action', array( $this, 'dismiss_action' ) );
101
+
102
+ }
103
+
104
+ /**
105
+ * Get single instance of this class
106
+ *
107
+ * @param array $args Configuration.
108
+ * @return Singleton object of this class
109
+ */
110
+ public static function get_instance( $args ) {
111
+ // Check if instance is already exists.
112
+ if ( is_null( self::$instance ) ) {
113
+ self::$instance = new self( $args );
114
+ }
115
+
116
+ return self::$instance;
117
+ }
118
+
119
+ /**
120
+ * Whether to show or not
121
+ *
122
+ * @return boolean
123
+ */
124
+ public function is_show() {
125
+
126
+ $timezone_format = _x( 'Y-m-d H:i:s', 'timezone date format', 'temporary-login-without-password' );
127
+ $current_date = strtotime( date_i18n( $timezone_format ) );
128
+ $start = strtotime( $this->start );
129
+ $end = strtotime( $this->end );
130
+ if ( ( $current_date >= $start ) && ( $current_date <= $end ) ) {
131
+ $option_value = get_option( $this->option_name, 'yes' );
132
+ $get_post_type = isset( $_GET['post_type'] ) ? sanitize_text_field( wp_unslash( $_GET['post_type'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification
133
+
134
+ if ( ( 'product' === $get_post_type || $this->is_plugin_page ) && 'yes' === $option_value ) {
135
+ return true;
136
+ }
137
+ }
138
+
139
+ return false;
140
+
141
+ }
142
+
143
+ /**
144
+ * Admin styles & scripts
145
+ */
146
+ public function admin_styles_and_scripts() {
147
+
148
+ if ( $this->is_show() ) {
149
+
150
+ if ( ! wp_script_is( 'jquery' ) ) {
151
+ wp_enqueue_script( 'jquery' );
152
+ }
153
+
154
+ ?>
155
+ <script type="text/javascript">
156
+ jQuery(function(){
157
+ jQuery('.sa_offer_container').on('click', '.sa_dismiss a', function(){
158
+ jQuery.ajax({
159
+ url: '<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>',
160
+ type: 'post',
161
+ dataType: 'json',
162
+ data: {
163
+ action: '<?php echo esc_html( $this->prefix ); ?>_dismiss_action',
164
+ security: '<?php echo esc_html( wp_create_nonce( $this->prefix . '-dismiss-action' ) ); ?>'
165
+ },
166
+ success: function( response ){
167
+ if ( response.success != undefined && response.success != '' && response.success == 'yes' ) {
168
+ jQuery('.sa_offer_container').fadeOut(500, function(){ jQuery('.sa_offer_container').remove(); });
169
+ }
170
+ }
171
+ });
172
+ return false;
173
+ });
174
+ });
175
+ </script>
176
+ <?php
177
+
178
+ }
179
+
180
+ }
181
+
182
+ /**
183
+ * The offer content
184
+ */
185
+ public function in_app_offer() {
186
+
187
+ if ( $this->is_show() ) {
188
+ ?>
189
+ <div class="sa_offer_container"><?php $this->show_offer_content(); ?></div>
190
+ <?php
191
+ }
192
+ }
193
+
194
+ /**
195
+ * The offer content
196
+ */
197
+ public function show_offer_content() {
198
+ if ( ! wp_script_is( 'jquery' ) ) {
199
+ wp_enqueue_script( 'jquery' );
200
+ }
201
+
202
+ ?>
203
+ <style type="text/css">
204
+ .sa_offer {
205
+ margin: 1em auto;
206
+ text-align: center;
207
+ font-size: 1.2em;
208
+ line-height: 1em;
209
+ padding: 1em;
210
+ }
211
+ .sa_offer_content img {
212
+ width: 55%;
213
+ margin: 0 auto;
214
+ }
215
+ .sa_dismiss {
216
+ font-size: 0.5em;
217
+ display: inline-block;
218
+ width: 100%;
219
+ text-align: center;
220
+ letter-spacing: 2px;
221
+ }
222
+ </style>
223
+ <div class="sa_offer">
224
+ <div class="sa_offer_content">
225
+ <a href="https://www.storeapps.org/woocommerce-plugins/?utm_source=in_app&utm_medium=<?php echo esc_attr( $this->prefix ); ?>_banner&utm_campaign=<?php echo esc_attr( $this->campaign ); ?>" target="_blank">
226
+ <img src="<?php echo esc_url( plugins_url( 'sa-includes/images/halloween-2022.png', $this->plugin_file ) ); ?>" />
227
+ </a>
228
+ <div class="sa_dismiss"> <!-- Do not change this class -->
229
+ <a href="javascript:void(0)" style="color: black; text-decoration: none;" title="<?php echo esc_attr__( 'Dismiss', 'temporary-login-without-password' ); ?>"><?php echo esc_html__( 'Hide this', 'temporary-login-without-password' ); ?></a>
230
+ </div>
231
+ </div>
232
+ </div>
233
+ <script type="text/javascript">
234
+ jQuery(function(){
235
+ jQuery('div.sa_offer').not(':eq(0)').hide(); // To hide offer div if present multiple times.
236
+ });
237
+ </script>
238
+ <?php
239
+ }
240
+
241
+ /**
242
+ * Handle dismiss action
243
+ */
244
+ public function dismiss_action() {
245
+
246
+ check_ajax_referer( $this->prefix . '-dismiss-action', 'security' );
247
+
248
+ update_option( $this->option_name, 'no', 'no' );
249
+
250
+ wp_send_json( array( 'success' => 'yes' ) );
251
+
252
+ }
253
+
254
+ }
includes/sa-includes/images/halloween-2022.png ADDED
Binary file
languages/temporary-login-without-password.pot CHANGED
@@ -1,17 +1,17 @@
1
- # Copyright (C) 2021 StoreApps
2
  # This file is distributed under the same license as the Temporary Login Without Password plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Temporary Login Without Password 1.6.12\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/temporary-login-without-password\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2021-05-20T21:13:05+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
- "X-Generator: WP-CLI 2.4.0\n"
15
  "X-Domain: temporary-login-without-password\n"
16
 
17
  #. Plugin Name of the plugin
@@ -31,198 +31,198 @@ msgid "StoreApps"
31
  msgstr ""
32
 
33
  #. Author URI of the plugin
34
- msgid "https://storeapps.org"
35
  msgstr ""
36
 
37
- #: admin/class-wp-temporary-login-without-password-admin.php:139
38
  #: templates/admin-settings.php:11
39
  #: templates/admin-settings.php:21
40
  msgid "Temporary Logins"
41
  msgstr ""
42
 
43
- #: admin/class-wp-temporary-login-without-password-admin.php:460
44
  msgid "User creation failed"
45
  msgstr ""
46
 
47
- #: admin/class-wp-temporary-login-without-password-admin.php:461
48
  msgid "You do not have permission to create a temporary login"
49
  msgstr ""
50
 
51
- #: admin/class-wp-temporary-login-without-password-admin.php:462
52
  msgid "Email is already in use"
53
  msgstr ""
54
 
55
- #: admin/class-wp-temporary-login-without-password-admin.php:463
56
  msgid "Please enter valid email address. Email field should not be empty"
57
  msgstr ""
58
 
59
- #: admin/class-wp-temporary-login-without-password-admin.php:464
60
  msgid "Please enter valid email address"
61
  msgstr ""
62
 
63
- #: admin/class-wp-temporary-login-without-password-admin.php:465
64
  msgid "User you are trying to delete is not temporary"
65
  msgstr ""
66
 
67
- #: admin/class-wp-temporary-login-without-password-admin.php:466
68
  msgid "Nonce failed"
69
  msgstr ""
70
 
71
- #: admin/class-wp-temporary-login-without-password-admin.php:467
72
  msgid "Invalid action"
73
  msgstr ""
74
 
75
- #: admin/class-wp-temporary-login-without-password-admin.php:468
76
  msgid "Unknown error occurred"
77
  msgstr ""
78
 
79
- #: admin/class-wp-temporary-login-without-password-admin.php:469
80
  msgid "Login created successfully!"
81
  msgstr ""
82
 
83
- #: admin/class-wp-temporary-login-without-password-admin.php:470
84
  msgid "Login updated successfully!"
85
  msgstr ""
86
 
87
- #: admin/class-wp-temporary-login-without-password-admin.php:471
88
  msgid "Login deleted successfully!"
89
  msgstr ""
90
 
91
- #: admin/class-wp-temporary-login-without-password-admin.php:472
92
  msgid "Login disabled successfully!"
93
  msgstr ""
94
 
95
- #: admin/class-wp-temporary-login-without-password-admin.php:473
96
  msgid "Login enabled successfully!"
97
  msgstr ""
98
 
99
- #: admin/class-wp-temporary-login-without-password-admin.php:474
100
  msgid "Settings have been updated successfully"
101
  msgstr ""
102
 
103
- #: admin/class-wp-temporary-login-without-password-admin.php:475
104
  msgid "Success!"
105
  msgstr ""
106
 
107
- #: admin/class-wp-temporary-login-without-password-admin.php:588
108
  msgid "Temporary Access"
109
  msgstr ""
110
 
111
- #. translators: 1. WordPress URL 2. Email Subscribers version 3. Icegram site URL
112
- #: admin/class-wp-temporary-login-without-password-admin.php:715
113
- msgid "<span id=\"footer-thankyou\">Thank you for creating with <a href=\"%1$s\" target=\"_blank\">WordPress</a> | Temporary Login Without Password <b>%2$s</b>. Developed by team <a href=\"%3$s\" target=\"_blank\">Store Apps</a></span>"
114
  msgstr ""
115
 
116
- #: includes/class-wp-temporary-login-without-password-common.php:194
117
- #: includes/class-wp-temporary-login-without-password-common.php:195
118
- #: includes/class-wp-temporary-login-without-password-common.php:196
119
- #: includes/class-wp-temporary-login-without-password-common.php:197
120
- #: includes/class-wp-temporary-login-without-password-common.php:198
121
- #: includes/class-wp-temporary-login-without-password-common.php:199
122
  msgid "From Now"
123
  msgstr ""
124
 
125
- #: includes/class-wp-temporary-login-without-password-common.php:194
126
- #: includes/class-wp-temporary-login-without-password-common.php:200
127
  msgid "One Hour"
128
  msgstr ""
129
 
130
- #: includes/class-wp-temporary-login-without-password-common.php:195
131
- #: includes/class-wp-temporary-login-without-password-common.php:201
132
  msgid "Three Hours"
133
  msgstr ""
134
 
135
- #: includes/class-wp-temporary-login-without-password-common.php:196
136
- #: includes/class-wp-temporary-login-without-password-common.php:202
137
  msgid "One Day"
138
  msgstr ""
139
 
140
- #: includes/class-wp-temporary-login-without-password-common.php:197
141
- #: includes/class-wp-temporary-login-without-password-common.php:203
142
  msgid "Three Days"
143
  msgstr ""
144
 
145
- #: includes/class-wp-temporary-login-without-password-common.php:198
146
- #: includes/class-wp-temporary-login-without-password-common.php:204
147
  msgid "One Week"
148
  msgstr ""
149
 
150
- #: includes/class-wp-temporary-login-without-password-common.php:199
151
- #: includes/class-wp-temporary-login-without-password-common.php:205
152
  msgid "One Month"
153
  msgstr ""
154
 
155
- #: includes/class-wp-temporary-login-without-password-common.php:200
156
- #: includes/class-wp-temporary-login-without-password-common.php:201
157
- #: includes/class-wp-temporary-login-without-password-common.php:202
158
- #: includes/class-wp-temporary-login-without-password-common.php:203
159
- #: includes/class-wp-temporary-login-without-password-common.php:204
160
- #: includes/class-wp-temporary-login-without-password-common.php:205
161
  msgid "After Access"
162
  msgstr ""
163
 
164
- #: includes/class-wp-temporary-login-without-password-common.php:200
165
  msgid "1 hour after access"
166
  msgstr ""
167
 
168
- #: includes/class-wp-temporary-login-without-password-common.php:201
169
  msgid "3 hours after access"
170
  msgstr ""
171
 
172
- #: includes/class-wp-temporary-login-without-password-common.php:202
173
  msgid "1 day after access"
174
  msgstr ""
175
 
176
- #: includes/class-wp-temporary-login-without-password-common.php:203
177
  msgid "3 days after access"
178
  msgstr ""
179
 
180
- #: includes/class-wp-temporary-login-without-password-common.php:204
181
  msgid "1 week after access"
182
  msgstr ""
183
 
184
- #: includes/class-wp-temporary-login-without-password-common.php:205
185
  msgid "1 month after access"
186
  msgstr ""
187
 
188
- #: includes/class-wp-temporary-login-without-password-common.php:206
189
  msgid "Custom"
190
  msgstr ""
191
 
192
- #: includes/class-wp-temporary-login-without-password-common.php:206
193
  msgid "Custom Date"
194
  msgstr ""
195
 
196
- #: includes/class-wp-temporary-login-without-password-common.php:726
197
- #: includes/class-wp-temporary-login-without-password-common.php:763
198
  msgid "Expired"
199
  msgstr ""
200
 
201
- #: includes/class-wp-temporary-login-without-password-common.php:951
202
  msgid "Hello,"
203
  msgstr ""
204
 
205
- #: includes/class-wp-temporary-login-without-password-common.php:952
206
  msgid "Click the following link to log into the system:"
207
  msgstr ""
208
 
209
- #: includes/class-wp-temporary-login-without-password-common.php:953
210
  msgid "Temporary Login Link"
211
  msgstr ""
212
 
213
- #: includes/class-wp-temporary-login-without-password-common.php:1066
214
  msgid "Website Home Page"
215
  msgstr ""
216
 
217
- #: includes/class-wp-temporary-login-without-password-common.php:1067
218
  msgid "System Default"
219
  msgstr ""
220
 
221
- #: includes/class-wp-temporary-login-without-password-common.php:1068
222
  msgid "Dashboard"
223
  msgstr ""
224
 
225
- #: includes/class-wp-temporary-login-without-password-common.php:1073
226
  msgid "Pages"
227
  msgstr ""
228
 
@@ -291,6 +291,47 @@ msgstr ""
291
  msgid "Copy login link"
292
  msgstr ""
293
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
294
  #: public/class-wp-temporary-login-without-password-public.php:52
295
  msgid "Token empty"
296
  msgstr ""
1
+ # Copyright (C) 2022 StoreApps
2
  # This file is distributed under the same license as the Temporary Login Without Password plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Temporary Login Without Password 1.8.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/temporary-login-without-password\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2022-10-20T20:27:01+05:30\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
+ "X-Generator: WP-CLI 2.1.0\n"
15
  "X-Domain: temporary-login-without-password\n"
16
 
17
  #. Plugin Name of the plugin
31
  msgstr ""
32
 
33
  #. Author URI of the plugin
34
+ msgid "https://www.storeapps.org/"
35
  msgstr ""
36
 
37
+ #: admin/class-wp-temporary-login-without-password-admin.php:143
38
  #: templates/admin-settings.php:11
39
  #: templates/admin-settings.php:21
40
  msgid "Temporary Logins"
41
  msgstr ""
42
 
43
+ #: admin/class-wp-temporary-login-without-password-admin.php:464
44
  msgid "User creation failed"
45
  msgstr ""
46
 
47
+ #: admin/class-wp-temporary-login-without-password-admin.php:465
48
  msgid "You do not have permission to create a temporary login"
49
  msgstr ""
50
 
51
+ #: admin/class-wp-temporary-login-without-password-admin.php:466
52
  msgid "Email is already in use"
53
  msgstr ""
54
 
55
+ #: admin/class-wp-temporary-login-without-password-admin.php:467
56
  msgid "Please enter valid email address. Email field should not be empty"
57
  msgstr ""
58
 
59
+ #: admin/class-wp-temporary-login-without-password-admin.php:468
60
  msgid "Please enter valid email address"
61
  msgstr ""
62
 
63
+ #: admin/class-wp-temporary-login-without-password-admin.php:469
64
  msgid "User you are trying to delete is not temporary"
65
  msgstr ""
66
 
67
+ #: admin/class-wp-temporary-login-without-password-admin.php:470
68
  msgid "Nonce failed"
69
  msgstr ""
70
 
71
+ #: admin/class-wp-temporary-login-without-password-admin.php:471
72
  msgid "Invalid action"
73
  msgstr ""
74
 
75
+ #: admin/class-wp-temporary-login-without-password-admin.php:472
76
  msgid "Unknown error occurred"
77
  msgstr ""
78
 
79
+ #: admin/class-wp-temporary-login-without-password-admin.php:473
80
  msgid "Login created successfully!"
81
  msgstr ""
82
 
83
+ #: admin/class-wp-temporary-login-without-password-admin.php:474
84
  msgid "Login updated successfully!"
85
  msgstr ""
86
 
87
+ #: admin/class-wp-temporary-login-without-password-admin.php:475
88
  msgid "Login deleted successfully!"
89
  msgstr ""
90
 
91
+ #: admin/class-wp-temporary-login-without-password-admin.php:476
92
  msgid "Login disabled successfully!"
93
  msgstr ""
94
 
95
+ #: admin/class-wp-temporary-login-without-password-admin.php:477
96
  msgid "Login enabled successfully!"
97
  msgstr ""
98
 
99
+ #: admin/class-wp-temporary-login-without-password-admin.php:478
100
  msgid "Settings have been updated successfully"
101
  msgstr ""
102
 
103
+ #: admin/class-wp-temporary-login-without-password-admin.php:479
104
  msgid "Success!"
105
  msgstr ""
106
 
107
+ #: admin/class-wp-temporary-login-without-password-admin.php:592
108
  msgid "Temporary Access"
109
  msgstr ""
110
 
111
+ #. translators: %1$s: link to plugin on WordPress %2$s: Plugin version %3$s: StoreApps link
112
+ #: admin/class-wp-temporary-login-without-password-admin.php:738
113
+ msgid "<span id=\"footer-thankyou\">Thank you for creating with <a href=\"%1$s\" target=\"_blank\">WordPress</a> | Temporary Login Without Password <strong>%2$s</strong>. Developed by team <a href=\"%3$s\" target=\"_blank\">StoreApps</a></span>"
114
  msgstr ""
115
 
116
+ #: includes/class-wp-temporary-login-without-password-common.php:208
117
+ #: includes/class-wp-temporary-login-without-password-common.php:209
118
+ #: includes/class-wp-temporary-login-without-password-common.php:210
119
+ #: includes/class-wp-temporary-login-without-password-common.php:211
120
+ #: includes/class-wp-temporary-login-without-password-common.php:212
121
+ #: includes/class-wp-temporary-login-without-password-common.php:213
122
  msgid "From Now"
123
  msgstr ""
124
 
125
+ #: includes/class-wp-temporary-login-without-password-common.php:208
126
+ #: includes/class-wp-temporary-login-without-password-common.php:214
127
  msgid "One Hour"
128
  msgstr ""
129
 
130
+ #: includes/class-wp-temporary-login-without-password-common.php:209
131
+ #: includes/class-wp-temporary-login-without-password-common.php:215
132
  msgid "Three Hours"
133
  msgstr ""
134
 
135
+ #: includes/class-wp-temporary-login-without-password-common.php:210
136
+ #: includes/class-wp-temporary-login-without-password-common.php:216
137
  msgid "One Day"
138
  msgstr ""
139
 
140
+ #: includes/class-wp-temporary-login-without-password-common.php:211
141
+ #: includes/class-wp-temporary-login-without-password-common.php:217
142
  msgid "Three Days"
143
  msgstr ""
144
 
145
+ #: includes/class-wp-temporary-login-without-password-common.php:212
146
+ #: includes/class-wp-temporary-login-without-password-common.php:218
147
  msgid "One Week"
148
  msgstr ""
149
 
150
+ #: includes/class-wp-temporary-login-without-password-common.php:213
151
+ #: includes/class-wp-temporary-login-without-password-common.php:219
152
  msgid "One Month"
153
  msgstr ""
154
 
155
+ #: includes/class-wp-temporary-login-without-password-common.php:214
156
+ #: includes/class-wp-temporary-login-without-password-common.php:215
157
+ #: includes/class-wp-temporary-login-without-password-common.php:216
158
+ #: includes/class-wp-temporary-login-without-password-common.php:217
159
+ #: includes/class-wp-temporary-login-without-password-common.php:218
160
+ #: includes/class-wp-temporary-login-without-password-common.php:219
161
  msgid "After Access"
162
  msgstr ""
163
 
164
+ #: includes/class-wp-temporary-login-without-password-common.php:214
165
  msgid "1 hour after access"
166
  msgstr ""
167
 
168
+ #: includes/class-wp-temporary-login-without-password-common.php:215
169
  msgid "3 hours after access"
170
  msgstr ""
171
 
172
+ #: includes/class-wp-temporary-login-without-password-common.php:216
173
  msgid "1 day after access"
174
  msgstr ""
175
 
176
+ #: includes/class-wp-temporary-login-without-password-common.php:217
177
  msgid "3 days after access"
178
  msgstr ""
179
 
180
+ #: includes/class-wp-temporary-login-without-password-common.php:218
181
  msgid "1 week after access"
182
  msgstr ""
183
 
184
+ #: includes/class-wp-temporary-login-without-password-common.php:219
185
  msgid "1 month after access"
186
  msgstr ""
187
 
188
+ #: includes/class-wp-temporary-login-without-password-common.php:220
189
  msgid "Custom"
190
  msgstr ""
191
 
192
+ #: includes/class-wp-temporary-login-without-password-common.php:220
193
  msgid "Custom Date"
194
  msgstr ""
195
 
196
+ #: includes/class-wp-temporary-login-without-password-common.php:785
197
+ #: includes/class-wp-temporary-login-without-password-common.php:822
198
  msgid "Expired"
199
  msgstr ""
200
 
201
+ #: includes/class-wp-temporary-login-without-password-common.php:1010
202
  msgid "Hello,"
203
  msgstr ""
204
 
205
+ #: includes/class-wp-temporary-login-without-password-common.php:1011
206
  msgid "Click the following link to log into the system:"
207
  msgstr ""
208
 
209
+ #: includes/class-wp-temporary-login-without-password-common.php:1012
210
  msgid "Temporary Login Link"
211
  msgstr ""
212
 
213
+ #: includes/class-wp-temporary-login-without-password-common.php:1132
214
  msgid "Website Home Page"
215
  msgstr ""
216
 
217
+ #: includes/class-wp-temporary-login-without-password-common.php:1133
218
  msgid "System Default"
219
  msgstr ""
220
 
221
+ #: includes/class-wp-temporary-login-without-password-common.php:1134
222
  msgid "Dashboard"
223
  msgstr ""
224
 
225
+ #: includes/class-wp-temporary-login-without-password-common.php:1139
226
  msgid "Pages"
227
  msgstr ""
228
 
291
  msgid "Copy login link"
292
  msgstr ""
293
 
294
+ #: includes/feedback.php:329
295
+ msgid "📣 Quick survey: Tell us what feature you want in the Temporary Login plugin?"
296
+ msgstr ""
297
+
298
+ #: includes/feedback.php:332
299
+ msgid "Generation of bulk login links when users are uploaded via CSV"
300
+ msgstr ""
301
+
302
+ #: includes/feedback.php:333
303
+ msgid "Create a temporary login link whenever a user registers"
304
+ msgstr ""
305
+
306
+ #: includes/feedback.php:334
307
+ msgid "Send an email notification to the admin when a temporary user logs in."
308
+ msgstr ""
309
+
310
+ #: includes/feedback.php:335
311
+ msgid "Log every activity performed by a temporary login user"
312
+ msgstr ""
313
+
314
+ #: includes/feedback.php:336
315
+ msgid "Limit the number of times a temporary user can log in to your site"
316
+ msgstr ""
317
+
318
+ #: includes/feedback.php:337
319
+ msgid "Other - Mention the exact feature"
320
+ msgstr ""
321
+
322
+ #: includes/sa-includes/class-sa-in-app-offer.php:126
323
+ msgctxt "timezone date format"
324
+ msgid "Y-m-d H:i:s"
325
+ msgstr ""
326
+
327
+ #: includes/sa-includes/class-sa-in-app-offer.php:229
328
+ msgid "Dismiss"
329
+ msgstr ""
330
+
331
+ #: includes/sa-includes/class-sa-in-app-offer.php:229
332
+ msgid "Hide this"
333
+ msgstr ""
334
+
335
  #: public/class-wp-temporary-login-without-password-public.php:52
336
  msgid "Token empty"
337
  msgstr ""
readme.txt CHANGED
@@ -1,11 +1,11 @@
1
  === Temporary Login Without Password ===
2
- Contributors: storeapps, icegram, niravmehta, malayladu, asmipatel, sandhyam
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=BMFRMVXQ87JWA&source=url
4
  Tags: temporary access, developer access, passwordless login, magic pin, secure login
5
  Requires at least: 3.0.1
6
  Requires PHP: 5.3
7
- Tested up to: 6.0.2
8
- Stable tag: 1.7.6
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -171,12 +171,22 @@ Yes. There is no limit to create temporary logins. You can create as many tempor
171
 
172
  == Upgrade Notice ==
173
 
174
- = 1.7.6 =
175
 
176
- * Update: WordPress 6.0.2 compatibility check
 
 
 
177
 
178
  == Changelog ==
179
 
 
 
 
 
 
 
 
180
  **1.7.6 [2022-09-14]**
181
 
182
  * Update: WordPress 6.0.2 compatibility check
@@ -448,4 +458,4 @@ create a new temporary login.
448
 
449
  **1.0 [2016-08-04]**
450
 
451
- * Initial Release
1
  === Temporary Login Without Password ===
2
+ Contributors: storeapps, icegram, niravmehta, malayladu, asmipatel, sandhyam, mansi shah
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=BMFRMVXQ87JWA&source=url
4
  Tags: temporary access, developer access, passwordless login, magic pin, secure login
5
  Requires at least: 3.0.1
6
  Requires PHP: 5.3
7
+ Tested up to: 6.0.3
8
+ Stable tag: 1.8.0
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
171
 
172
  == Upgrade Notice ==
173
 
174
+ = 1.8.0 =
175
 
176
+ * Update: WordPress 6.0.3 compatibility check
177
+ * Update: Minor improvements
178
+ * Update: POT file
179
+ * Fix: PHP Fatal error: Uncaught Error: Call to undefined function get_current_screen() in some cases
180
 
181
  == Changelog ==
182
 
183
+ **1.8.0 [2022-10-21]**
184
+
185
+ * Update: WordPress 6.0.3 compatibility check
186
+ * Update: Minor improvements
187
+ * Update: POT file
188
+ * Fix: PHP Fatal error: Uncaught Error: Call to undefined function get_current_screen() in some cases
189
+
190
  **1.7.6 [2022-09-14]**
191
 
192
  * Update: WordPress 6.0.2 compatibility check
458
 
459
  **1.0 [2016-08-04]**
460
 
461
+ * Initial Release
temporary-login-without-password.php CHANGED
@@ -3,16 +3,16 @@
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.7.6
7
  * Author: StoreApps
8
- * Author URI: https://www.storeapps.org
9
  * Requires at least: 3.0.1
10
- * Tested up to: 6.0.2
11
  * License: GPLv3
12
  * License URI: http://www.gnu.org/licenses/gpl-3.0.html
13
  * Text Domain: temporary-login-without-password
14
  * Domain Path: /languages/
15
- * Copyright (c) 2016-2022 StoreApps, All right reserved
16
  *
17
  * @package Temporary Login Without Password
18
  */
@@ -25,12 +25,41 @@ if ( ! defined( 'WPINC' ) ) {
25
  /**
26
  * Define constants
27
  */
28
- define( 'WTLWP_PLUGIN_VERSION', '1.7.6' );
29
  define( 'WTLWP_FEEDBACK_VERSION', '1.2.8' );
30
  define( 'WTLWP_TRACKER_VERSION', '1.2.5' );
31
  define( 'WTLWP_PLUGIN_DIR', dirname( __FILE__ ) );
32
  define( 'WTLWP_PLUGIN_BASE_NAME', plugin_basename( __FILE__ ) );
33
  define( 'WTLWP_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  /**
36
  * Deactivate Temporary Login Without Password
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.8.0
7
  * Author: StoreApps
8
+ * Author URI: https://www.storeapps.org/
9
  * Requires at least: 3.0.1
10
+ * Tested up to: 6.0.3
11
  * License: GPLv3
12
  * License URI: http://www.gnu.org/licenses/gpl-3.0.html
13
  * Text Domain: temporary-login-without-password
14
  * Domain Path: /languages/
15
+ * Copyright (c) 2016-2022 StoreApps. All right reserved
16
  *
17
  * @package Temporary Login Without Password
18
  */
25
  /**
26
  * Define constants
27
  */
 
28
  define( 'WTLWP_FEEDBACK_VERSION', '1.2.8' );
29
  define( 'WTLWP_TRACKER_VERSION', '1.2.5' );
30
  define( 'WTLWP_PLUGIN_DIR', dirname( __FILE__ ) );
31
  define( 'WTLWP_PLUGIN_BASE_NAME', plugin_basename( __FILE__ ) );
32
  define( 'WTLWP_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
33
+ if ( ! defined( 'WTLWP_PLUGIN_FILE' ) ) {
34
+ define( 'WTLWP_PLUGIN_FILE', __FILE__ );
35
+ }
36
+ if ( ! defined( 'WTLWP_PLUGIN_VERSION' ) ) {
37
+ define( 'WTLWP_PLUGIN_VERSION', get_wtlwp_plugin_version() );
38
+ }
39
+
40
+ /**
41
+ * Function to return plugin data.
42
+ *
43
+ * @since 1.8.0
44
+ */
45
+ function get_wtlwp_plugin_data() {
46
+ if ( ! function_exists( 'get_plugin_data' ) ) {
47
+ require_once ABSPATH . 'wp-admin/includes/plugin.php';
48
+ }
49
+ return get_plugin_data( WTLWP_PLUGIN_FILE );
50
+ }
51
+
52
+ /**
53
+ * Function to return current plugin version.
54
+ *
55
+ * @since 1.8.0
56
+ */
57
+ function get_wtlwp_plugin_version() {
58
+ $plugin_data = get_wtlwp_plugin_data();
59
+ $plugin_version = $plugin_data['Version'];
60
+
61
+ return $plugin_version;
62
+ }
63
 
64
  /**
65
  * Deactivate Temporary Login Without Password