PluginProbe
WP Coder – Insert & Manage Code Snippets / 4.5
WP Coder – Insert & Manage Code Snippets v4.5
4.5.1 1.1 2.3.1 2.3.2 2.4.1 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.1 3.1.1 3.2 3.2.1 3.3 3.4 3.5 3.5.1 All 39 releases
wp-coder / classes / Snippets / pages / login.php

login.php in WP Coder – Insert & Manage Code Snippets 4.5, at classes/Snippets/pages/login.php

110 lines 3.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 defined( 'ABSPATH' ) || exit;
4
5 ?>
6
7 <div class="wowp-snippets__header">
8 <h3 class="wowp-snippets__header-title">Login & User Access</h3>
9 <p class="wowp-snippets__header-description">Enhance and control access to the WordPress login page.</p>
10 </div>
11
12 <?php
13
14 $snippets = [
15 'disable_login_language_dropdown' => [
16 'Disable Login Page Language Switcher',
17 'Remove the language switcher from the login screen.',
18 ],
19
20 'disable_login_by_email' => [
21 'Disable Login by Email',
22 'Allow users to log in using only their username.',
23 ],
24 'disable_admin_pass_reset_email' => [
25 'Disable Admin Password Reset Emails',
26 'Prevent password reset emails from being sent.',
27 ],
28 ];
29
30 self::create_options( $snippets );
31
32 ?>
33 <div class="wowp-snippet__list">
34
35 <div class="wowp-snippet__item">
36 <div class="wowp-snippet__item-header">
37 <label for="change_logo_on_site_icon">Change Logo on Login Page</label>
38 <p class="wowp-snippet__item-description">Replace the default WordPress logo with your own site icon. Go to the <a href="<?php
39 echo esc_url( get_admin_url() ); ?>customize.php">customizer</a> to set or change your site icon.</p>
40 </div>
41 <div class="wowp-field has-checkbox">
42 <label class="switch">
43 <?php self::field( 'checkbox', 'change_logo_on_site_icon' ); ?>
44 <span class="slider"></span>
45 </label>
46 </div>
47 </div>
48
49 <div class="wowp-snippet__item">
50 <div class="wowp-snippet__item-header">
51 <label for="change_logo_link">Change URL for Logo on Login Page</label>
52 <p class="wowp-snippet__item-description">Redirect the login logo to your homepage.</p>
53 </div>
54 <div class="wowp-field has-checkbox">
55 <label class="switch">
56 <?php self::field( 'checkbox', 'change_logo_link' ); ?>
57 <span class="slider"></span>
58 </label>
59 </div>
60 </div>
61
62 <div class="wowp-snippet__item">
63 <div class="wowp-snippet__item-header">
64 <label for="change_redirect_after_login">Change Redirect After Login</label>
65 <p class="wowp-snippet__item-description">Set a custom redirect URL after login.</p>
66 </div>
67 <div class="wowp-field has-checkbox">
68 <label class="switch">
69 <?php self::field( 'checkbox', 'change_redirect_after_login' ); ?>
70 <span class="slider"></span>
71 </label>
72 </div>
73 <div class="wowp-snippet__item-expand is-hidden">
74 <div class="wowp-field">
75 <label>
76 <span class="label">Redirect to: <?php echo esc_url( get_site_url() ); ?>/</span>
77 <?php self::field( 'text', 'change_redirect_login_link', '', 'account' ); ?>
78 </label>
79 </div>
80 </div>
81 </div>
82
83 <div class="wowp-snippet__item">
84 <div class="wowp-snippet__item-header">
85 <label for="change_redirect_after_logout">Change Redirect After Logout</label>
86 <p class="wowp-snippet__item-description">Set a custom redirect URL after logout.</p>
87 </div>
88 <div class="wowp-field has-checkbox">
89 <label class="switch">
90 <?php self::field( 'checkbox', 'change_redirect_after_logout' ); ?>
91 <span class="slider"></span>
92 </label>
93 </div>
94 <div class="wowp-snippet__item-expand is-hidden">
95 <div class="wowp-field">
96 <label>
97 <span class="label">Redirect to: <?php echo esc_url( get_site_url() ); ?>/</span>
98 <?php self::field( 'text', 'change_redirect_logout_link', '', 'visit-again' ); ?>
99 </label>
100 </div>
101 </div>
102 </div>
103
104 </div>
105
106
107
108 <?php
109
110