Change wp-admin login - Version 1.0.3

Version Description

  • Add redirect custom field.
  • When someone tries to access the wp-login.php page or the wp-admin directory while not logged in will be redirect to the page that you defined on the redirect custom field.
Download this release

Release Info

Developer nunosarmento
Plugin Icon 128x128 Change wp-admin login
Version 1.0.3
Comparing to
See all releases

Code changes from version 1.0.2 to 1.0.3

assets/images/screenshot-1.png CHANGED
Binary file
assets/images/screenshot-2.png ADDED
Binary file
change-wp-admin-login.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Change wp-admin login
4
  Plugin URI: https://wordpress.org/plugins/change-wp-admin-login/
5
  Description: Change wp-admin login to whatever you want. example: http://www.example.com/my-login. Go under Settings and then click on "Permalinks" and change your URL under "Change wp-admin login".
6
- Version: 1.0.2
7
  Author: Nuno Morais Sarmento
8
  Author URI: https://www.nuno-sarmento.com
9
  Text Domain: change-wp-admin-login
3
  Plugin Name: Change wp-admin login
4
  Plugin URI: https://wordpress.org/plugins/change-wp-admin-login/
5
  Description: Change wp-admin login to whatever you want. example: http://www.example.com/my-login. Go under Settings and then click on "Permalinks" and change your URL under "Change wp-admin login".
6
+ Version: 1.0.3
7
  Author: Nuno Morais Sarmento
8
  Author URI: https://www.nuno-sarmento.com
9
  Text Domain: change-wp-admin-login
includes/class-change-wp-admin-login.php CHANGED
@@ -1,6 +1,5 @@
1
  <?php defined('ABSPATH') or die();
2
 
3
-
4
  if ( defined( 'ABSPATH' ) && ! class_exists( 'Change_WP_Admin_Login' ) ) {
5
 
6
  class Change_WP_Admin_Login {
@@ -135,6 +134,7 @@ if ( defined( 'ABSPATH' ) && ! class_exists( 'Change_WP_Admin_Login' ) ) {
135
  }
136
  }
137
 
 
138
  public function wpmu_options() {
139
  $out = '';
140
 
@@ -172,12 +172,24 @@ if ( defined( 'ABSPATH' ) && ! class_exists( 'Change_WP_Admin_Login' ) ) {
172
 
173
  add_settings_field(
174
  'rwl-page',
175
- '<label for="rwl-page">' . __( 'Login url', 'change-wp-admin-login' ) . '</label>',
176
  array( $this, 'rwl_page_input' ),
177
  'permalink',
178
  'change-wp-admin-login-section'
179
  );
180
 
 
 
 
 
 
 
 
 
 
 
 
 
181
  if ( isset( $_POST['rwl_page'] ) && $pagenow === 'options-permalink.php' ) {
182
  if (
183
  ( $rwl_page = sanitize_title_with_dashes( $_POST['rwl_page'] ) ) &&
@@ -216,6 +228,12 @@ if ( defined( 'ABSPATH' ) && ! class_exists( 'Change_WP_Admin_Login' ) ) {
216
 
217
  echo $out;
218
  }
 
 
 
 
 
 
219
 
220
  public function rwl_page_input() {
221
  if ( get_option( 'permalink_structure' ) ) {
@@ -223,7 +241,6 @@ if ( defined( 'ABSPATH' ) && ! class_exists( 'Change_WP_Admin_Login' ) ) {
223
  } else {
224
  echo '<code>' . trailingslashit( home_url() ) . '?</code> <input id="rwl-page-input" type="text" name="rwl_page" value="' . $this->new_login_slug() . '">';
225
  }
226
- echo '<p class="description"><strong>' . __( 'Note: When someone tries to access the wp-login.php page or the wp-admin directory while not logged in will be redirected to the website homepage.', 'change-wp-admin-login' ) . '</strong></p>';
227
  }
228
 
229
  public function admin_notices() {
@@ -283,8 +300,13 @@ if ( defined( 'ABSPATH' ) && ! class_exists( 'Change_WP_Admin_Login' ) ) {
283
  global $pagenow;
284
 
285
  if ( is_admin() && ! is_user_logged_in() && ! defined( 'DOING_AJAX' ) ) {
286
- $url = '/';
287
- wp_redirect($url);
 
 
 
 
 
288
  die();
289
  //wp_die( __( 'You must log in to access the admin area.', 'change-wp-admin-login' ) );
290
  }
1
  <?php defined('ABSPATH') or die();
2
 
 
3
  if ( defined( 'ABSPATH' ) && ! class_exists( 'Change_WP_Admin_Login' ) ) {
4
 
5
  class Change_WP_Admin_Login {
134
  }
135
  }
136
 
137
+
138
  public function wpmu_options() {
139
  $out = '';
140
 
172
 
173
  add_settings_field(
174
  'rwl-page',
175
+ '<label for="rwl-page">' . __( 'Login URL', 'change-wp-admin-login' ) . '</label>',
176
  array( $this, 'rwl_page_input' ),
177
  'permalink',
178
  'change-wp-admin-login-section'
179
  );
180
 
181
+ // Add redirect field
182
+ add_settings_field(
183
+ 'rwl_redirect_field', __( 'Redirect URL', 'change-wp-admin-login' ),
184
+ array( $this, 'rwl_redirect_func' ),
185
+ 'permalink',
186
+ 'change-wp-admin-login-section'
187
+ );
188
+
189
+ if( isset( $_POST['rwl_redirect_field'] ) && $pagenow === 'options-permalink.php' ) {
190
+ update_option( 'rwl_redirect_field', sanitize_title_with_dashes( $_POST['rwl_redirect_field'] ) );
191
+ }
192
+
193
  if ( isset( $_POST['rwl_page'] ) && $pagenow === 'options-permalink.php' ) {
194
  if (
195
  ( $rwl_page = sanitize_title_with_dashes( $_POST['rwl_page'] ) ) &&
228
 
229
  echo $out;
230
  }
231
+ // new redirect field
232
+ public function rwl_redirect_func() {
233
+ $value = get_option( 'rwl_redirect_field' );
234
+ echo '<input type="text" value="' . esc_attr( $value ) . '" name="rwl_redirect_field" id="rwl_redirect_field" class="regular-text" />';
235
+ echo '<p class="description"><strong>' . __( 'If you leave the above field empty the plugin will add a redirect to the website homepage.', 'change-wp-admin-login' ) . '</strong></p>';
236
+ }
237
 
238
  public function rwl_page_input() {
239
  if ( get_option( 'permalink_structure' ) ) {
241
  } else {
242
  echo '<code>' . trailingslashit( home_url() ) . '?</code> <input id="rwl-page-input" type="text" name="rwl_page" value="' . $this->new_login_slug() . '">';
243
  }
 
244
  }
245
 
246
  public function admin_notices() {
300
  global $pagenow;
301
 
302
  if ( is_admin() && ! is_user_logged_in() && ! defined( 'DOING_AJAX' ) ) {
303
+
304
+ if ( get_option( 'rwl_redirect_field' ) == 'false' ) {
305
+ wp_safe_redirect( '/' );
306
+ } else {
307
+ wp_safe_redirect( '/' . get_option( 'rwl_redirect_field' ) );
308
+ }
309
+
310
  die();
311
  //wp_die( __( 'You must log in to access the admin area.', 'change-wp-admin-login' ) );
312
  }
languages/change-wp-admin-login-es.po CHANGED
@@ -44,7 +44,11 @@ msgstr "Valor por defecto para toda la red"
44
  msgid "Login url"
45
  msgstr "URL de acceso"
46
 
47
- #: ../includes/class-change-wp-admin-login.php:214
 
 
 
 
48
  #, php-format
49
  msgid ""
50
  "To set a networkwide default, go to <a href=\"%s\">Network Settings</a>."
@@ -52,11 +56,11 @@ msgstr ""
52
  "Para configurar ajustes por defecto para toda la red ve a los <a href=\\”%s"
53
  "\\”>Configuración de la red</a>."
54
 
55
- #: ../includes/class-change-wp-admin-login.php:226
56
- msgid "Note: When someone tries to access the wp-login.php page or the wp-admin directory while not logged in will be redirected to the website Note: When someone tries to access the wp-login.php page or the wp-admin directory while not logged in will be redirected to the website homepage."
57
- msgstr "Cuando alguien intente acceder a la página wp-login.php o al directorio wp-admin sin estar conectado, será redirigido a la página de inicio del sitio web."
58
 
59
- #: ../includes/class-change-wp-admin-login.php:233
60
  #, php-format
61
  msgid ""
62
  "Your login page is now here: <strong><a href=\"%1$s\">%2$s</a></strong>. "
@@ -65,11 +69,11 @@ msgstr ""
65
  "Ahora tu página de acceso está aquí: <strong><a href=\\”%1$s\\”>%2$s</a></"
66
  "strong>. ¡Guarda esta página en tus favoritos!"
67
 
68
- #: ../includes/class-change-wp-admin-login.php:239
69
- #: ../includes/class-change-wp-admin-login.php:241
70
  msgid "Settings"
71
  msgstr "Ajustes"
72
 
73
- #: ../includes/class-change-wp-admin-login.php:258
74
  msgid "This feature is not enabled."
75
  msgstr "Esta función no está habilitada."
44
  msgid "Login url"
45
  msgstr "URL de acceso"
46
 
47
+ #: ../includes/class-change-wp-admin-login.php:183
48
+ msgid "Redirect URL"
49
+ msgstr ""
50
+
51
+ #: ../includes/class-change-wp-admin-login.php:226
52
  #, php-format
53
  msgid ""
54
  "To set a networkwide default, go to <a href=\"%s\">Network Settings</a>."
56
  "Para configurar ajustes por defecto para toda la red ve a los <a href=\\”%s"
57
  "\\”>Configuración de la red</a>."
58
 
59
+ #: ../includes/class-change-wp-admin-login.php.php:235
60
+ msgid "If you leave the above field empty the plugin will add a redirect to the website homepage."
61
+ msgstr ""
62
 
63
+ #: ../includes/class-change-wp-admin-login.php:250
64
  #, php-format
65
  msgid ""
66
  "Your login page is now here: <strong><a href=\"%1$s\">%2$s</a></strong>. "
69
  "Ahora tu página de acceso está aquí: <strong><a href=\\”%1$s\\”>%2$s</a></"
70
  "strong>. ¡Guarda esta página en tus favoritos!"
71
 
72
+ #: ../includes/class-change-wp-admin-login.php:256
73
+ #: ../includes/class-change-wp-admin-login.php:258
74
  msgid "Settings"
75
  msgstr "Ajustes"
76
 
77
+ #: ../includes/class-change-wp-admin-login.php:275
78
  msgid "This feature is not enabled."
79
  msgstr "Esta función no está habilitada."
languages/change-wp-admin-login-fr_FR.po CHANGED
@@ -44,7 +44,11 @@ msgstr "Réglage par défaut du réseau"
44
  msgid "Login url"
45
  msgstr "URL de connexion"
46
 
47
- #: ../includes/class-change-wp-admin-login.php:214
 
 
 
 
48
  #, php-format
49
  msgid ""
50
  "To set a networkwide default, go to <a href=\"%s\">Network Settings</a>."
@@ -52,12 +56,11 @@ msgstr ""
52
  "Pour définir un réglage par défaut pour le réseau, allez aux <a href=\\”%s"
53
  "\\”>réglages du réseaux</a>."
54
 
55
- #: ../includes/class-change-wp-admin-login.php:226
56
- msgid "Note: When someone tries to access the wp-login.php page or the wp-admin directory while not logged in will be redirected to the website Note: When someone tries to access the wp-login.php page or the wp-admin directory while not logged in will be redirected to the website homepage."
57
- msgstr "lorsque quelqu'un essaie d'accéder à la page wp-login.php ou au répertoire wp-admin sans être connecté, il sera redirigé vers la page d'accueil du site Web."
58
-
59
 
60
- #: ../includes/class-change-wp-admin-login.php:233
61
  #, php-format
62
  msgid ""
63
  "Your login page is now here: <strong><a href=\"%1$s\">%2$s</a></strong>. "
@@ -66,11 +69,11 @@ msgstr ""
66
  "Votre page de connexion est maintenant ici : <strong><a href=\\”%1$s\\”>"
67
  "%2$s</a></strong>. Mettez-la en favori !"
68
 
69
- #: ../includes/class-change-wp-admin-login.php:239
70
- #: ../includes/class-change-wp-admin-login.php:241
71
  msgid "Settings"
72
  msgstr "Réglages"
73
 
74
- #: ../includes/class-change-wp-admin-login.php:258
75
  msgid "This feature is not enabled."
76
  msgstr "Cette fonctionnalité n’est pas activée."
44
  msgid "Login url"
45
  msgstr "URL de connexion"
46
 
47
+ #: ../includes/class-change-wp-admin-login.php:183
48
+ msgid "Redirect URL"
49
+ msgstr ""
50
+
51
+ #: ../includes/class-change-wp-admin-login.php:226
52
  #, php-format
53
  msgid ""
54
  "To set a networkwide default, go to <a href=\"%s\">Network Settings</a>."
56
  "Pour définir un réglage par défaut pour le réseau, allez aux <a href=\\”%s"
57
  "\\”>réglages du réseaux</a>."
58
 
59
+ #: ../includes/class-change-wp-admin-login.php.php:235
60
+ msgid "If you leave the above field empty the plugin will add a redirect to the website homepage."
61
+ msgstr ""
 
62
 
63
+ #: ../includes/class-change-wp-admin-login.php:250
64
  #, php-format
65
  msgid ""
66
  "Your login page is now here: <strong><a href=\"%1$s\">%2$s</a></strong>. "
69
  "Votre page de connexion est maintenant ici : <strong><a href=\\”%1$s\\”>"
70
  "%2$s</a></strong>. Mettez-la en favori !"
71
 
72
+ #: ../includes/class-change-wp-admin-login.php:256
73
+ #: ../includes/class-change-wp-admin-login.php:258
74
  msgid "Settings"
75
  msgstr "Réglages"
76
 
77
+ #: ../includes/class-change-wp-admin-login.php:275
78
  msgid "This feature is not enabled."
79
  msgstr "Cette fonctionnalité n’est pas activée."
languages/change-wp-admin-login-it.po CHANGED
@@ -44,7 +44,11 @@ msgstr "Predefinito per l’intera rete"
44
  msgid "Login url"
45
  msgstr "Url di accesso"
46
 
47
- #: ../includes/class-change-wp-admin-login.php:214
 
 
 
 
48
  #, php-format
49
  msgid ""
50
  "To set a networkwide default, go to <a href=\"%s\">Network Settings</a>."
@@ -52,12 +56,11 @@ msgstr ""
52
  "Per impostare una rete predefinita ampia, andate a <a href=\\”%s"
53
  "\\”>Impostazioni di rete</a>."
54
 
55
- #: ../includes/class-change-wp-admin-login.php:226
56
- msgid "Note: When someone tries to access the wp-login.php page or the wp-admin directory while not logged in will be redirected to the website Note: When someone tries to access the wp-login.php page or the wp-admin directory while not logged in will be redirected to the website homepage."
57
- msgstr "Quando qualcuno tenta di accedere alla pagina wp-login.php o alla directory wp-admin senza aver effettuato l'accesso, verrà reindirizzato alla home page del sito web."
58
-
59
 
60
- #: ../includes/class-change-wp-admin-login.php:233
61
  #, php-format
62
  msgid ""
63
  "Your login page is now here: <strong><a href=\"%1$s\">%2$s</a></strong>. "
@@ -66,11 +69,11 @@ msgstr ""
66
  "La tua pagina di accesso adesso si trova qui: <strong><a href=\\”%1$s\\”>"
67
  "%2$s</a></strong>. Metti questa pagina nei preferiti!"
68
 
69
- #: ../includes/class-change-wp-admin-login.php:239
70
- #: ../includes/class-change-wp-admin-login.php:241
71
  msgid "Settings"
72
  msgstr "Impostazioni"
73
 
74
- #: ../includes/class-change-wp-admin-login.php:258
75
  msgid "This feature is not enabled."
76
  msgstr "Questa funzione non è abilitata."
44
  msgid "Login url"
45
  msgstr "Url di accesso"
46
 
47
+ #: ../includes/class-change-wp-admin-login.php:183
48
+ msgid "Redirect URL"
49
+ msgstr "
50
+
51
+ #: ../includes/class-change-wp-admin-login.php:226
52
  #, php-format
53
  msgid ""
54
  "To set a networkwide default, go to <a href=\"%s\">Network Settings</a>."
56
  "Per impostare una rete predefinita ampia, andate a <a href=\\”%s"
57
  "\\”>Impostazioni di rete</a>."
58
 
59
+ #: ../includes/class-change-wp-admin-login.php.php:235
60
+ msgid "If you leave the above field empty the plugin will add a redirect to the website homepage."
61
+ msgstr ""
 
62
 
63
+ #: ../includes/class-change-wp-admin-login.php:250
64
  #, php-format
65
  msgid ""
66
  "Your login page is now here: <strong><a href=\"%1$s\">%2$s</a></strong>. "
69
  "La tua pagina di accesso adesso si trova qui: <strong><a href=\\”%1$s\\”>"
70
  "%2$s</a></strong>. Metti questa pagina nei preferiti!"
71
 
72
+ #: ../includes/class-change-wp-admin-login.php:256
73
+ #: ../includes/class-change-wp-admin-login.php:258
74
  msgid "Settings"
75
  msgstr "Impostazioni"
76
 
77
+ #: ../includes/class-change-wp-admin-login.php:275
78
  msgid "This feature is not enabled."
79
  msgstr "Questa funzione non è abilitata."
languages/change-wp-admin-login-pt_PT.po CHANGED
@@ -44,7 +44,11 @@ msgstr "Padrão em toda a rede"
44
  msgid "Login url"
45
  msgstr "URL de login"
46
 
47
- #: ../includes/class-change-wp-admin-login.php:214
 
 
 
 
48
  #, php-format
49
  msgid ""
50
  "To set a networkwide default, go to <a href=\"%s\">Network Settings</a>."
@@ -52,12 +56,11 @@ msgstr ""
52
  "Para definir um padrão para toda a rede, carregue em <a href=\\”%s\\”> "
53
  "Configurações de rede </a>."
54
 
55
- #: ../includes/class-change-wp-admin-login.php:226
56
- msgid "Note: When someone tries to access the wp-login.php page or the wp-admin directory while not logged in will be redirected to the website Note: When someone tries to access the wp-login.php page or the wp-admin directory while not logged in will be redirected to the website homepage."
57
- msgstr "Quando alguém tentar aceder a página wp-login.php ou o diretório wp-admin enquanto não estiver logado, será redirecionado para a página inicial do site."
58
-
59
 
60
- #: ../includes/class-change-wp-admin-login.php:233
61
  #, php-format
62
  msgid ""
63
  "Your login page is now here: <strong><a href=\"%1$s\">%2$s</a></strong>. "
@@ -66,11 +69,11 @@ msgstr ""
66
  "Sua página de login agora está aqui: <strong><a href=\\”%1$s\\”>%2$s</a></"
67
  "strong>. Guarde a pagina nos seus favoritos!"
68
 
69
- #: ../includes/class-change-wp-admin-login.php:239
70
- #: ../includes/class-change-wp-admin-login.php:241
71
  msgid "Settings"
72
  msgstr "Definições"
73
 
74
- #: ../includes/class-change-wp-admin-login.php:258
75
  msgid "This feature is not enabled."
76
  msgstr "Este recurso não está activado."
44
  msgid "Login url"
45
  msgstr "URL de login"
46
 
47
+ #: ../includes/class-change-wp-admin-login.php:183
48
+ msgid "Redirect URL"
49
+ msgstr ""
50
+
51
+ #: ../includes/class-change-wp-admin-login.php:226
52
  #, php-format
53
  msgid ""
54
  "To set a networkwide default, go to <a href=\"%s\">Network Settings</a>."
56
  "Para definir um padrão para toda a rede, carregue em <a href=\\”%s\\”> "
57
  "Configurações de rede </a>."
58
 
59
+ #: ../includes/class-change-wp-admin-login.php.php:235
60
+ msgid "If you leave the above field empty the plugin will add a redirect to the website homepage."
61
+ msgstr ""
 
62
 
63
+ #: ../includes/class-change-wp-admin-login.php:250
64
  #, php-format
65
  msgid ""
66
  "Your login page is now here: <strong><a href=\"%1$s\">%2$s</a></strong>. "
69
  "Sua página de login agora está aqui: <strong><a href=\\”%1$s\\”>%2$s</a></"
70
  "strong>. Guarde a pagina nos seus favoritos!"
71
 
72
+ #: ../includes/class-change-wp-admin-login.php:256
73
+ #: ../includes/class-change-wp-admin-login.php:258
74
  msgid "Settings"
75
  msgstr "Definições"
76
 
77
+ #: ../includes/class-change-wp-admin-login.php:275
78
  msgid "This feature is not enabled."
79
  msgstr "Este recurso não está activado."
languages/change-wp-admin-login-ru.po CHANGED
@@ -45,7 +45,11 @@ msgstr "Умолчания сети"
45
  msgid "Login url"
46
  msgstr "URL входа"
47
 
48
- #: ../includes/class-change-wp-admin-login.php:214
 
 
 
 
49
  #, php-format
50
  msgid ""
51
  "To set a networkwide default, go to <a href=\"%s\">Network Settings</a>."
@@ -53,11 +57,11 @@ msgstr ""
53
  "Для установки умолчаний сети, перейдите в <a href=\\”%s\\”>Настройки сети</"
54
  "a>."
55
 
56
- #: ../includes/class-change-wp-admin-login.php.php:226
57
- msgid "Note: When someone tries to access the wp-login.php page or the wp-admin directory while not logged in will be redirected to the website Note: When someone tries to access the wp-login.php page or the wp-admin directory while not logged in will be redirected to the website homepage."
58
- msgstr "Когда кто-то пытается получить доступ к странице wp-login.php или каталогу wp-admin, не авторизовавшись, будет перенаправлен на домашнюю страницу веб-сайта."
59
 
60
- #: ../includes/class-change-wp-admin-login.php:233
61
  #, php-format
62
  msgid ""
63
  "Your login page is now here: <strong><a href=\"%1$s\">%2$s</a></strong>. "
@@ -66,11 +70,11 @@ msgstr ""
66
  "Ваша страница авторизации теперь здесь: <strong><a href=\\”%1$s\\”>%2$s</a></"
67
  "strong>. Сделайте закладку на эту страницу!"
68
 
69
- #: ../includes/class-change-wp-admin-login.php:239
70
- #: ../includes/class-change-wp-admin-login.php:241
71
  msgid "Settings"
72
  msgstr "Настройки"
73
 
74
- #: ../includes/class-change-wp-admin-login.php:258
75
  msgid "This feature is not enabled."
76
  msgstr "Этот функционал не включен."
45
  msgid "Login url"
46
  msgstr "URL входа"
47
 
48
+ #: ../includes/class-change-wp-admin-login.php:183
49
+ msgid "Redirect URL"
50
+ msgstr ""
51
+
52
+ #: ../includes/class-change-wp-admin-login.php:226
53
  #, php-format
54
  msgid ""
55
  "To set a networkwide default, go to <a href=\"%s\">Network Settings</a>."
57
  "Для установки умолчаний сети, перейдите в <a href=\\”%s\\”>Настройки сети</"
58
  "a>."
59
 
60
+ #: ../includes/class-change-wp-admin-login.php.php:235
61
+ msgid "If you leave the above field empty the plugin will add a redirect to the website homepage."
62
+ msgstr ""
63
 
64
+ #: ../includes/class-change-wp-admin-login.php:250
65
  #, php-format
66
  msgid ""
67
  "Your login page is now here: <strong><a href=\"%1$s\">%2$s</a></strong>. "
70
  "Ваша страница авторизации теперь здесь: <strong><a href=\\”%1$s\\”>%2$s</a></"
71
  "strong>. Сделайте закладку на эту страницу!"
72
 
73
+ #: ../includes/class-change-wp-admin-login.php:256
74
+ #: ../includes/class-change-wp-admin-login.php:258
75
  msgid "Settings"
76
  msgstr "Настройки"
77
 
78
+ #: ../includes/class-change-wp-admin-login.php:275
79
  msgid "This feature is not enabled."
80
  msgstr "Этот функционал не включен."
languages/change-wp-admin-login.pot CHANGED
@@ -37,34 +37,38 @@ msgid "Networkwide default"
37
  msgstr ""
38
 
39
  #: ../includes/class-change-wp-admin-login.php:175
40
- msgid "Login url"
41
  msgstr ""
42
 
43
- #: ../includes/class-change-wp-admin-login.php:214
 
 
 
 
44
  #, php-format
45
  msgid ""
46
  "To set a networkwide default, go to <a href=\"%s\">Network Settings</a>."
47
  msgstr ""
48
 
49
- #: ../includes/class-change-wp-admin-login.php.php:226
50
- msgid "Note: When someone tries to access the wp-login.php page or the wp-admin directory while not logged in will be redirected to the website Note: When someone tries to access the wp-login.php page or the wp-admin directory while not logged in will be redirected to the website homepage."
51
  msgstr ""
52
 
53
- #: ../includes/class-change-wp-admin-login.php:233
54
  #, php-format
55
  msgid ""
56
  "Your login page is now here: <strong><a href=\"%1$s\">%2$s</a></strong>. "
57
  "Bookmark this page!"
58
  msgstr "
59
 
60
- #: ../includes/class-change-wp-admin-login.php:239
61
  msgid "Settings"
62
  msgstr ""
63
 
64
- #: ../includes/class-change-wp-admin-login.php:241
65
  msgid "Settings"
66
  msgstr ""
67
 
68
- #: ../includes/class-change-wp-admin-login.php:258
69
  msgid "This feature is not enabled."
70
  msgstr ""
37
  msgstr ""
38
 
39
  #: ../includes/class-change-wp-admin-login.php:175
40
+ msgid "Login URL"
41
  msgstr ""
42
 
43
+ #: ../includes/class-change-wp-admin-login.php:183
44
+ msgid "Redirect URL"
45
+ msgstr ""
46
+
47
+ #: ../includes/class-change-wp-admin-login.php:226
48
  #, php-format
49
  msgid ""
50
  "To set a networkwide default, go to <a href=\"%s\">Network Settings</a>."
51
  msgstr ""
52
 
53
+ #: ../includes/class-change-wp-admin-login.php.php:235
54
+ msgid "If you leave the above field empty the plugin will add a redirect to the website homepage."
55
  msgstr ""
56
 
57
+ #: ../includes/class-change-wp-admin-login.php:250
58
  #, php-format
59
  msgid ""
60
  "Your login page is now here: <strong><a href=\"%1$s\">%2$s</a></strong>. "
61
  "Bookmark this page!"
62
  msgstr "
63
 
64
+ #: ../includes/class-change-wp-admin-login.php:256
65
  msgid "Settings"
66
  msgstr ""
67
 
68
+ #: ../includes/class-change-wp-admin-login.php:258
69
  msgid "Settings"
70
  msgstr ""
71
 
72
+ #: ../includes/class-change-wp-admin-login.php:275
73
  msgid "This feature is not enabled."
74
  msgstr ""
readme.txt CHANGED
@@ -3,7 +3,7 @@ Tags: change wp-login, rename wp-login, wp-admin, login, wp-login,
3
  Contributors: nunosarmento
4
  Requires at least: 4.4
5
  Tested up to: 5.6
6
- Stable tag: 1.0.2
7
  License: GPL-2.0+
8
 
9
 
@@ -17,7 +17,15 @@ Example: http://www.example.com/my-login.
17
 
18
  == New Feature ==
19
 
20
- Automatic redirect to homepage when someone tries to access the wp-login.php page or the wp-admin directory while not logged in.
 
 
 
 
 
 
 
 
21
 
22
  == Installation ==
23
 
@@ -63,3 +71,7 @@ Yes, it does work. You should setup the login URL in each website (Settings-->Pe
63
 
64
  = 1.0.2 =
65
  * Add translations
 
 
 
 
3
  Contributors: nunosarmento
4
  Requires at least: 4.4
5
  Tested up to: 5.6
6
+ Stable tag: 1.0.3
7
  License: GPL-2.0+
8
 
9
 
17
 
18
  == New Feature ==
19
 
20
+ Add redirect custom field.
21
+ When someone tries to access the wp-login.php page or the wp-admin directory while not logged in will be redirect to the page that you defined on the redirect custom field.
22
+
23
+ == How to use the plugin ==
24
+
25
+ Step 1: Add new login URL
26
+
27
+ Step 2: Add redirect URL
28
+
29
 
30
  == Installation ==
31
 
71
 
72
  = 1.0.2 =
73
  * Add translations
74
+
75
+ = 1.0.3 =
76
+ * Add redirect custom field.
77
+ * When someone tries to access the wp-login.php page or the wp-admin directory while not logged in will be redirect to the page that you defined on the redirect custom field.