Peter’s Login Redirect - Version 3.0.0.8

Version Description

  • Added noncache to temporary redirects.
  • Added user_id placeholder.
  • Added wp_logout() redirection support
Download this release

Release Info

Developer Collizo4sky
Plugin Icon 128x128 Peter’s Login Redirect
Version 3.0.0.8
Comparing to
See all releases

Code changes from version 3.0.0.7 to 3.0.0.8

changelog.txt CHANGED
@@ -1,5 +1,10 @@
1
  == Changelog ==
2
 
 
 
 
 
 
3
  = 3.0.0.7 =
4
  * Fix site and website url placeholder bug in multisite.
5
 
1
  == Changelog ==
2
 
3
+ = 3.0.0.8 =
4
+ * Added noncache to temporary redirects.
5
+ * Added user_id placeholder.
6
+ * Added wp_logout() redirection support
7
+
8
  = 3.0.0.7 =
9
  * Fix site and website url placeholder bug in multisite.
10
 
languages/peters-login-redirect.pot CHANGED
@@ -2,10 +2,10 @@
2
  # This file is distributed under the same license as the LoginWP (Formerly Peter's Login Redirect) package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: LoginWP (Formerly Peter's Login Redirect) 3.0.0.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/peters-login-"
7
  "redirect\n"
8
- "POT-Creation-Date: 2022-01-19 15:37:55+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -117,7 +117,7 @@ msgstr ""
117
  msgid "Support"
118
  msgstr ""
119
 
120
- #: src/core/src/Admin/Admin.php:165 src/core/src/Admin/RedirectionsPage.php:470
121
  msgid "Upgrade to PRO"
122
  msgstr ""
123
 
@@ -473,18 +473,22 @@ msgid "ERROR: Unknown problem updating URL"
473
  msgstr ""
474
 
475
  #: src/core/src/Admin/RedirectionsPage.php:448
476
- msgid "Username of user"
477
  msgstr ""
478
 
479
  #: src/core/src/Admin/RedirectionsPage.php:449
480
- msgid "Author URL slug or user nicename"
481
  msgstr ""
482
 
483
  #: src/core/src/Admin/RedirectionsPage.php:450
 
 
 
 
484
  msgid "Website URL"
485
  msgstr ""
486
 
487
- #: src/core/src/Admin/RedirectionsPage.php:465
488
  msgid ""
489
  "With %sLoginWP PRO%s, you can redirect users to the current page they are "
490
  "logging in from or back to the previous (referrer) page after login."
@@ -671,9 +675,9 @@ msgstr ""
671
  msgid "LoginWP (Formerly Peter's Login Redirect)"
672
  msgstr ""
673
 
674
- #. #-#-#-#-# peters-login-redirect.pot (LoginWP (Formerly Peter's Login Redirect) 3.0.0.7) #-#-#-#-#
675
  #. Plugin URI of the plugin/theme
676
- #. #-#-#-#-# peters-login-redirect.pot (LoginWP (Formerly Peter's Login Redirect) 3.0.0.7) #-#-#-#-#
677
  #. Author URI of the plugin/theme
678
  msgid "https://loginwp.com"
679
  msgstr ""
2
  # This file is distributed under the same license as the LoginWP (Formerly Peter's Login Redirect) package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: LoginWP (Formerly Peter's Login Redirect) 3.0.0.8\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/peters-login-"
7
  "redirect\n"
8
+ "POT-Creation-Date: 2022-04-05 12:30:28+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
117
  msgid "Support"
118
  msgstr ""
119
 
120
+ #: src/core/src/Admin/Admin.php:165 src/core/src/Admin/RedirectionsPage.php:471
121
  msgid "Upgrade to PRO"
122
  msgstr ""
123
 
473
  msgstr ""
474
 
475
  #: src/core/src/Admin/RedirectionsPage.php:448
476
+ msgid "User ID of user"
477
  msgstr ""
478
 
479
  #: src/core/src/Admin/RedirectionsPage.php:449
480
+ msgid "Username of user"
481
  msgstr ""
482
 
483
  #: src/core/src/Admin/RedirectionsPage.php:450
484
+ msgid "Author URL slug or user nicename"
485
+ msgstr ""
486
+
487
+ #: src/core/src/Admin/RedirectionsPage.php:451
488
  msgid "Website URL"
489
  msgstr ""
490
 
491
+ #: src/core/src/Admin/RedirectionsPage.php:466
492
  msgid ""
493
  "With %sLoginWP PRO%s, you can redirect users to the current page they are "
494
  "logging in from or back to the previous (referrer) page after login."
675
  msgid "LoginWP (Formerly Peter's Login Redirect)"
676
  msgstr ""
677
 
678
+ #. #-#-#-#-# peters-login-redirect.pot (LoginWP (Formerly Peter's Login Redirect) 3.0.0.8) #-#-#-#-#
679
  #. Plugin URI of the plugin/theme
680
+ #. #-#-#-#-# peters-login-redirect.pot (LoginWP (Formerly Peter's Login Redirect) 3.0.0.8) #-#-#-#-#
681
  #. Author URI of the plugin/theme
682
  msgid "https://loginwp.com"
683
  msgstr ""
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: login, logout, redirect, login form, user registration, admin, administrat
5
  Requires at least: 4.0
6
  Requires PHP: 5.6
7
  Tested up to: 5.9
8
- Stable tag: 3.0.0.7
9
  License: GPL-2.0+
10
 
11
  Redirect users to different locations after they log in, log out and register based on different conditions.
@@ -74,6 +74,11 @@ Login redirects not working? This plugin uses WordPress's standard login_redirec
74
 
75
  == Changelog ==
76
 
 
 
 
 
 
77
  = 3.0.0.7 =
78
  * Fix site and website url placeholder bug in multisite.
79
 
5
  Requires at least: 4.0
6
  Requires PHP: 5.6
7
  Tested up to: 5.9
8
+ Stable tag: 3.0.0.8
9
  License: GPL-2.0+
10
 
11
  Redirect users to different locations after they log in, log out and register based on different conditions.
74
 
75
  == Changelog ==
76
 
77
+ = 3.0.0.8 =
78
+ * Added noncache to temporary redirects.
79
+ * Added user_id placeholder.
80
+ * Added wp_logout() redirection support
81
+
82
  = 3.0.0.7 =
83
  * Fix site and website url placeholder bug in multisite.
84
 
src/core/src/Admin/RedirectionsPage.php CHANGED
@@ -445,6 +445,7 @@ class RedirectionsPage extends AbstractSettingsPage
445
  public static function available_placeholders_structure()
446
  {
447
  $available_placeholders = apply_filters('loginwp_login_redirection_placeholders', [
 
448
  'username' => esc_html__('Username of user', 'peters-login-redirect'),
449
  'user_slug' => esc_html__('Author URL slug or user nicename', 'peters-login-redirect'),
450
  'website_url' => esc_html__('Website URL', 'peters-login-redirect')
445
  public static function available_placeholders_structure()
446
  {
447
  $available_placeholders = apply_filters('loginwp_login_redirection_placeholders', [
448
+ 'user_id' => esc_html__('User ID of user', 'peters-login-redirect'),
449
  'username' => esc_html__('Username of user', 'peters-login-redirect'),
450
  'user_slug' => esc_html__('Author URL slug or user nicename', 'peters-login-redirect'),
451
  'website_url' => esc_html__('Website URL', 'peters-login-redirect')
src/core/src/Functions.php CHANGED
@@ -117,6 +117,7 @@ function redirect_to_front_page($redirect_to, $requested_redirect_to, $user)
117
  function wplogin_redirect_control_function()
118
  {
119
  $redirect_url = Redirections::login_redirect_callback(admin_url(), '', wp_get_current_user());
 
120
  wp_redirect($redirect_url);
121
  exit;
122
  }
117
  function wplogin_redirect_control_function()
118
  {
119
  $redirect_url = Redirections::login_redirect_callback(admin_url(), '', wp_get_current_user());
120
+ nocache_headers();
121
  wp_redirect($redirect_url);
122
  exit;
123
  }
src/core/src/Helpers.php CHANGED
@@ -104,9 +104,14 @@ class Helpers
104
  return false;
105
  }
106
 
107
- /*
108
- A generic function to return the value mapped to a particular variable
109
- */
 
 
 
 
 
110
  public static function rul_get_variable($variable, $user)
111
  {
112
  $variable_value = apply_filters('rul_replace_variable', false, $variable, $user);
@@ -121,6 +126,9 @@ class Helpers
121
  }
122
  } else {
123
  switch ($variable) {
 
 
 
124
  // Returns the current user's username (only use this if you know they're logged in)
125
  case 'username':
126
  $variable_value = rawurlencode($user->user_login);
104
  return false;
105
  }
106
 
107
+ /**
108
+ * A generic function to return the value mapped to a particular variable
109
+ *
110
+ * @param $variable
111
+ * @param \WP_User $user
112
+ *
113
+ * @return mixed|string|void|\WP_Error
114
+ */
115
  public static function rul_get_variable($variable, $user)
116
  {
117
  $variable_value = apply_filters('rul_replace_variable', false, $variable, $user);
126
  }
127
  } else {
128
  switch ($variable) {
129
+ case 'user_id':
130
+ $variable_value = absint($user->ID);
131
+ break;
132
  // Returns the current user's username (only use this if you know they're logged in)
133
  case 'username':
134
  $variable_value = rawurlencode($user->user_login);
src/core/src/Redirections/Redirections.php CHANGED
@@ -12,11 +12,22 @@ class Redirections
12
  add_filter('login_redirect', [__CLASS__, 'login_redirect_callback'], 999999999, 3);
13
  add_filter('registration_redirect', [__CLASS__, 'registration_redirect_callback'], 10, 2);
14
  add_filter('logout_redirect', [__CLASS__, 'logout_redirect'], 999999999, 3);
 
 
 
 
 
 
 
 
 
 
 
15
  }
16
 
17
  public function login_redirect_url()
18
  {
19
- if(isset($_GET['loginwp_link_redirect'])) {
20
  wplogin_redirect_control_function();
21
  }
22
  }
12
  add_filter('login_redirect', [__CLASS__, 'login_redirect_callback'], 999999999, 3);
13
  add_filter('registration_redirect', [__CLASS__, 'registration_redirect_callback'], 10, 2);
14
  add_filter('logout_redirect', [__CLASS__, 'logout_redirect'], 999999999, 3);
15
+
16
+ add_action('wp_logout', function ($user_id) {
17
+ $url = self::logout_redirect('', '', get_userdata($user_id));
18
+ if ( ! empty($url)) {
19
+ nocache_headers();
20
+ wp_redirect($url);
21
+ exit;
22
+ }
23
+
24
+ }, 1);
25
+
26
  }
27
 
28
  public function login_redirect_url()
29
  {
30
+ if (isset($_GET['loginwp_link_redirect'])) {
31
  wplogin_redirect_control_function();
32
  }
33
  }
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInitadb733f385777bf0194affed92734036::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInita43bbf33f561403ddc9fa682922990a4::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitadb733f385777bf0194affed92734036
6
  {
7
  private static $loader;
8
 
@@ -24,15 +24,15 @@ class ComposerAutoloaderInitadb733f385777bf0194affed92734036
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInitadb733f385777bf0194affed92734036', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
- spl_autoload_unregister(array('ComposerAutoloaderInitadb733f385777bf0194affed92734036', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
- call_user_func(\Composer\Autoload\ComposerStaticInitadb733f385777bf0194affed92734036::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
@@ -53,19 +53,19 @@ class ComposerAutoloaderInitadb733f385777bf0194affed92734036
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
- $includeFiles = Composer\Autoload\ComposerStaticInitadb733f385777bf0194affed92734036::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
- composerRequireadb733f385777bf0194affed92734036($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
- function composerRequireadb733f385777bf0194affed92734036($fileIdentifier, $file)
69
  {
70
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
71
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInita43bbf33f561403ddc9fa682922990a4
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInita43bbf33f561403ddc9fa682922990a4', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
+ spl_autoload_unregister(array('ComposerAutoloaderInita43bbf33f561403ddc9fa682922990a4', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
+ call_user_func(\Composer\Autoload\ComposerStaticInita43bbf33f561403ddc9fa682922990a4::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
+ $includeFiles = Composer\Autoload\ComposerStaticInita43bbf33f561403ddc9fa682922990a4::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
+ composerRequirea43bbf33f561403ddc9fa682922990a4($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
+ function composerRequirea43bbf33f561403ddc9fa682922990a4($fileIdentifier, $file)
69
  {
70
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
71
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInitadb733f385777bf0194affed92734036
8
  {
9
  public static $files = array (
10
  '7c119350ad5d791b1ae2d87a60e07ace' => __DIR__ . '/../..' . '/src/core/src/MoAdminNotice.php',
@@ -156,9 +156,9 @@ class ComposerStaticInitadb733f385777bf0194affed92734036
156
  public static function getInitializer(ClassLoader $loader)
157
  {
158
  return \Closure::bind(function () use ($loader) {
159
- $loader->prefixLengthsPsr4 = ComposerStaticInitadb733f385777bf0194affed92734036::$prefixLengthsPsr4;
160
- $loader->prefixDirsPsr4 = ComposerStaticInitadb733f385777bf0194affed92734036::$prefixDirsPsr4;
161
- $loader->classMap = ComposerStaticInitadb733f385777bf0194affed92734036::$classMap;
162
 
163
  }, null, ClassLoader::class);
164
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInita43bbf33f561403ddc9fa682922990a4
8
  {
9
  public static $files = array (
10
  '7c119350ad5d791b1ae2d87a60e07ace' => __DIR__ . '/../..' . '/src/core/src/MoAdminNotice.php',
156
  public static function getInitializer(ClassLoader $loader)
157
  {
158
  return \Closure::bind(function () use ($loader) {
159
+ $loader->prefixLengthsPsr4 = ComposerStaticInita43bbf33f561403ddc9fa682922990a4::$prefixLengthsPsr4;
160
+ $loader->prefixDirsPsr4 = ComposerStaticInita43bbf33f561403ddc9fa682922990a4::$prefixDirsPsr4;
161
+ $loader->classMap = ComposerStaticInita43bbf33f561403ddc9fa682922990a4::$classMap;
162
 
163
  }, null, ClassLoader::class);
164
  }
vendor/composer/installed.json CHANGED
@@ -200,40 +200,40 @@
200
  },
201
  {
202
  "name": "loginwp/core",
203
- "version": "0.1.0-alpha.1642606448",
204
- "version_normalized": "0.1.0.0-alpha1642606448",
205
  "source": {
206
  "type": "git",
207
- "url": "https://github.com/LoginWP/Core.git",
208
- "reference": "988cc2f949fdea3ac99dcd2f5374b3a05254d456"
209
  },
210
  "dist": {
211
  "type": "zip",
212
- "url": "https://api.github.com/repos/LoginWP/Core/zipball/988cc2f949fdea3ac99dcd2f5374b3a05254d456",
213
- "reference": "988cc2f949fdea3ac99dcd2f5374b3a05254d456",
214
  "shasum": ""
215
  },
216
  "require": {
217
  "collizo4sky/persist-admin-notices-dismissal": "^1.4",
218
  "composer/installers": "~1.0"
219
  },
220
- "time": "2022-01-07T13:11:48+00:00",
221
  "type": "wordpress-plugin",
222
  "installation-source": "dist",
223
  "autoload": {
224
- "psr-4": {
225
- "LoginWP\\Core\\": "src/"
226
- },
227
  "files": [
228
  "src/MoAdminNotice.php",
229
  "src/Functions.php"
230
- ]
 
 
 
231
  },
232
  "notification-url": "https://packagist.org/downloads/",
233
  "description": "Core lib for LoginWP",
234
  "support": {
235
- "issues": "https://github.com/LoginWP/Core/issues",
236
- "source": "https://github.com/LoginWP/Core/tree/0.1.0-alpha.1642606448"
237
  },
238
  "install-path": "../../src/core"
239
  }
200
  },
201
  {
202
  "name": "loginwp/core",
203
+ "version": "0.1.0-alpha.1649161704",
204
+ "version_normalized": "0.1.0.0-alpha1649161704",
205
  "source": {
206
  "type": "git",
207
+ "url": "https://github.com/loginwp/Core.git",
208
+ "reference": "1549fc5dc41e0c60f719448520e0c498debf57bc"
209
  },
210
  "dist": {
211
  "type": "zip",
212
+ "url": "https://api.github.com/repos/loginwp/Core/zipball/1549fc5dc41e0c60f719448520e0c498debf57bc",
213
+ "reference": "1549fc5dc41e0c60f719448520e0c498debf57bc",
214
  "shasum": ""
215
  },
216
  "require": {
217
  "collizo4sky/persist-admin-notices-dismissal": "^1.4",
218
  "composer/installers": "~1.0"
219
  },
220
+ "time": "2022-04-04T08:13:43+00:00",
221
  "type": "wordpress-plugin",
222
  "installation-source": "dist",
223
  "autoload": {
 
 
 
224
  "files": [
225
  "src/MoAdminNotice.php",
226
  "src/Functions.php"
227
+ ],
228
+ "psr-4": {
229
+ "LoginWP\\Core\\": "src/"
230
+ }
231
  },
232
  "notification-url": "https://packagist.org/downloads/",
233
  "description": "Core lib for LoginWP",
234
  "support": {
235
+ "issues": "https://github.com/loginwp/Core/issues",
236
+ "source": "https://github.com/loginwp/Core/tree/0.1.0-alpha.1649161704"
237
  },
238
  "install-path": "../../src/core"
239
  }
vendor/composer/installed.php CHANGED
@@ -5,7 +5,7 @@
5
  'type' => 'library',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
- 'reference' => '51952dcfa180e10dc71336f0078ae602da311e33',
9
  'name' => '__root__',
10
  'dev' => false,
11
  ),
@@ -16,7 +16,7 @@
16
  'type' => 'library',
17
  'install_path' => __DIR__ . '/../../',
18
  'aliases' => array(),
19
- 'reference' => '51952dcfa180e10dc71336f0078ae602da311e33',
20
  'dev_requirement' => false,
21
  ),
22
  'collizo4sky/persist-admin-notices-dismissal' => array(
@@ -38,12 +38,12 @@
38
  'dev_requirement' => false,
39
  ),
40
  'loginwp/core' => array(
41
- 'pretty_version' => '0.1.0-alpha.1642606448',
42
- 'version' => '0.1.0.0-alpha1642606448',
43
  'type' => 'wordpress-plugin',
44
  'install_path' => __DIR__ . '/../../src/core',
45
  'aliases' => array(),
46
- 'reference' => '988cc2f949fdea3ac99dcd2f5374b3a05254d456',
47
  'dev_requirement' => false,
48
  ),
49
  'roundcube/plugin-installer' => array(
5
  'type' => 'library',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
+ 'reference' => 'bfdcdb69ed715dacab4b6a945c5c243555797fb3',
9
  'name' => '__root__',
10
  'dev' => false,
11
  ),
16
  'type' => 'library',
17
  'install_path' => __DIR__ . '/../../',
18
  'aliases' => array(),
19
+ 'reference' => 'bfdcdb69ed715dacab4b6a945c5c243555797fb3',
20
  'dev_requirement' => false,
21
  ),
22
  'collizo4sky/persist-admin-notices-dismissal' => array(
38
  'dev_requirement' => false,
39
  ),
40
  'loginwp/core' => array(
41
+ 'pretty_version' => '0.1.0-alpha.1649161704',
42
+ 'version' => '0.1.0.0-alpha1649161704',
43
  'type' => 'wordpress-plugin',
44
  'install_path' => __DIR__ . '/../../src/core',
45
  'aliases' => array(),
46
+ 'reference' => '1549fc5dc41e0c60f719448520e0c498debf57bc',
47
  'dev_requirement' => false,
48
  ),
49
  'roundcube/plugin-installer' => array(
wplogin_redirect.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: LoginWP (Formerly Peter's Login Redirect)
4
  Plugin URI: https://loginwp.com
5
  Description: Redirect users to different URLs based on their role, capability and more.
6
- Version: 3.0.0.7
7
  Author: LoginWP Team
8
  Author URI: https://loginwp.com
9
  Text Domain: peters-login-redirect
@@ -16,7 +16,7 @@ use LoginWP\Core\Core;
16
  require __DIR__ . '/vendor/autoload.php';
17
 
18
  define('PTR_LOGINWP_SYSTEM_FILE_PATH', __FILE__);
19
- define('PTR_LOGINWP_VERSION_NUMBER', '3.0.0.7');
20
 
21
  add_action('init', function () {
22
  load_plugin_textdomain('peters-login-redirect', false, dirname(plugin_basename(__FILE__)) . '/languages');
3
  Plugin Name: LoginWP (Formerly Peter's Login Redirect)
4
  Plugin URI: https://loginwp.com
5
  Description: Redirect users to different URLs based on their role, capability and more.
6
+ Version: 3.0.0.8
7
  Author: LoginWP Team
8
  Author URI: https://loginwp.com
9
  Text Domain: peters-login-redirect
16
  require __DIR__ . '/vendor/autoload.php';
17
 
18
  define('PTR_LOGINWP_SYSTEM_FILE_PATH', __FILE__);
19
+ define('PTR_LOGINWP_VERSION_NUMBER', '3.0.0.8');
20
 
21
  add_action('init', function () {
22
  load_plugin_textdomain('peters-login-redirect', false, dirname(plugin_basename(__FILE__)) . '/languages');