PluginProbe ʕ •ᴥ•ʔ
Advanced Access Manager – Access Governance for WordPress / trunk
Advanced Access Manager – Access Governance for WordPress vtrunk
6.8.4 6.8.5 6.9.0 6.9.1 6.9.10 6.9.11 6.9.12 6.9.13 6.9.14 6.9.15 6.9.16 6.9.17 6.9.18 6.9.19 6.9.2 6.9.20 6.9.21 6.9.22 6.9.23 6.9.24 6.9.25 6.9.26 6.9.27 6.9.28 6.9.29 6.9.3 6.9.30 6.9.31 6.9.32 6.9.33 6.9.34 6.9.35 6.9.36 6.9.37 6.9.38 6.9.39 6.9.4 6.9.41 6.9.42 6.9.43 6.9.44 6.9.45 6.9.46 6.9.47 6.9.48 6.9.49 6.9.5 6.9.51 6.9.6 6.9.7 6.9.8 6.9.9 7.0.0 7.0.0-alpha.6 7.0.0-alpha.7 7.0.0-beta.1 7.0.0-rc1 7.0.0-rc2 7.0.0-rc3 7.0.1 7.0.10 7.0.11 7.0.2 7.0.3 7.0.4 7.0.5 7.0.6 7.0.7 7.0.8 7.0.9 7.1.0 7.1.1 trunk 3.0 4.0 4.0.1 4.1 4.2 4.3 4.4 4.4.1 4.5 4.6 4.6.1 4.6.2 4.7 4.7.1 4.7.2 4.7.5 4.7.6 4.8 4.8.1 4.9 4.9.1 4.9.2 4.9.3 4.9.4 4.9.5 4.9.5.1 4.9.5.2 5.0 5.0.1 5.0.2 5.0.3 5.0.4 5.0.5 5.0.6 5.0.7 5.0.8 5.1 5.1.1 5.10 5.11 5.2 5.2.1 5.2.5 5.2.6 5.2.7 5.3 5.3.1 5.3.2 5.3.3 5.3.4 5.3.5 5.4 5.4.1 5.4.2 5.4.3 5.4.3.1 5.4.3.2 5.5 5.5.1 5.5.2 5.6 5.6.1 5.6.1.1 5.7 5.7.1 5.7.2 5.7.3 5.8 5.8.1 5.8.2 5.8.3 5.9 5.9.1 5.9.1.1 5.9.2 5.9.2.1 5.9.3 5.9.4 5.9.5 5.9.6 5.9.6.1 5.9.6.2 5.9.6.3 5.9.7 5.9.7.1 5.9.7.2 5.9.7.3 5.9.8 5.9.8.1 5.9.9 5.9.9.1 6.0.0 6.0.1 6.0.2 6.0.3 6.0.4 6.0.5 6.1.0 6.1.1 6.2.0 6.2.1 6.2.2 6.3.0 6.3.1 6.3.2 6.3.3 6.4.0 6.4.1 6.4.2 6.4.3 6.5.0 6.5.1 6.5.2 6.5.3 6.5.4 6.6.0 6.6.1 6.6.2 6.6.3 6.6.4 6.7.0 6.7.1 6.7.2 6.7.3 6.7.4 6.7.5 6.7.6 6.7.7 6.7.8 6.7.9 6.8.0 6.8.1 6.8.2 6.8.3
advanced-access-manager / application / Backend / tmpl / service / login-redirect.php
advanced-access-manager / application / Backend / tmpl / service Last commit date
access-denied-redirect.php 1 year ago admin-toolbar.php 1 year ago api-route.php 1 year ago backend-menu.php 1 year ago capability.php 1 year ago content.php 1 year ago identity.php 1 year ago jwt.php 5 months ago login-redirect.php 1 year ago logout-redirect.php 1 year ago metabox.php 1 year ago not-found-redirect.php 1 year ago policy.php 1 year ago url.php 1 year ago welcome.php 1 year ago widget.php 1 year ago
login-redirect.php
120 lines
1 <?php /** @version 7.0.0 **/ ?>
2
3 <?php if (defined('AAM_KEY')) { ?>
4 <?php
5 $access_level = AAM_Backend_AccessLevel::get_instance();
6 $service = $access_level->login_redirect();
7 $settings = $service->get_redirect();
8 ?>
9 <div class="aam-feature" id="login_redirect-content">
10 <div class="row">
11 <div class="col-xs-12">
12 <?php if (AAM::api()->config->get('core.settings.ui.tips')) { ?>
13 <p class="aam-info">
14 <?php echo __('Seamlessly redirects users to their designated landing page post-login, ensuring personalized and efficient access to the website.', 'advanced-access-manager'); ?>
15 </p>
16 <?php } ?>
17
18 <div class="aam-overwrite" id="aam-login-redirect-overwrite" style="display: <?php echo ($service->is_customized() ? 'block' : 'none'); ?>">
19 <span><i class="icon-check"></i> <?php echo __('Settings are customized', 'advanced-access-manager'); ?></span>
20 <span><a href="#" id="login-redirect-reset" class="btn btn-xs btn-primary"><?php echo __('Reset to default', 'advanced-access-manager'); ?></a></span>
21 </div>
22
23 <?php $type = $settings['type']; ?>
24
25 <div class="radio">
26 <input
27 type="radio"
28 name="login.redirect.type"
29 id="login-redirect-default"
30 data-action="#default-redirect-action"
31 value="default"
32 <?php echo ($type === 'default' ? ' checked' : ''); ?>
33 />
34 <label for="login-redirect-default"><?php echo __('WordPress default behavior', 'advanced-access-manager'); ?></label>
35 </div>
36 <div class="radio">
37 <input
38 type="radio"
39 name="login.redirect.type"
40 id="login-redirect-page"
41 data-action="#page-login-redirect-action"
42 value="page_redirect"
43 <?php echo ($type === 'page_redirect' ? ' checked' : ''); ?>
44 />
45 <label for="login-redirect-page"><?php echo AAM_Backend_View_Helper::preparePhrase('Redirected to an existing page [(select from the drop-down)]', 'small'); ?></label>
46 </div>
47 <div class="radio">
48 <input
49 type="radio"
50 name="login.redirect.type"
51 id="login-redirect-url"
52 data-action="#url-login-redirect-action"
53 value="url_redirect"
54 <?php echo ($type === 'url_redirect' ? ' checked' : ''); ?>
55 />
56 <label for="login-redirect-url"><?php echo AAM_Backend_View_Helper::preparePhrase('Redirected to a URL [(enter a valid URL starting from http or https)]', 'small'); ?></label>
57 </div>
58 <div class="radio">
59 <input
60 type="radio"
61 name="login.redirect.type"
62 id="login-redirect-callback"
63 data-action="#callback-login-redirect-action"
64 value="trigger_callback"
65 <?php echo ($type === 'trigger_callback' ? ' checked' : ''); ?>
66 />
67 <label for="login-redirect-callback"><?php echo sprintf(AAM_Backend_View_Helper::preparePhrase('Trigger a PHP callback function [(valid %sPHP callback%s is required)]', 'small'), '<a href="https://php.net/manual/en/language.types.callable.php" target="_blank">', '</a>'); ?></label>
68 </div>
69
70 <div
71 class="form-group login-redirect-action"
72 id="page-login-redirect-action"
73 style="display: <?php echo ($type === 'page_redirect' ? 'block' : 'none'); ?>;"
74 >
75 <label><?php echo __('Existing Page', 'advanced-access-manager'); ?></label>
76 <?php
77 wp_dropdown_pages(array(
78 'depth' => 99,
79 'selected' => isset($settings['redirect_page_id']) ? $settings['redirect_page_id'] : 0,
80 'echo' => 1,
81 'id' => 'login-redirect-page',
82 'class' => 'form-control',
83 'show_option_none' => __('-- Select Page --', 'advanced-access-manager')
84 ));
85 ?>
86 </div>
87
88 <div
89 class="form-group login-redirect-action"
90 id="url-login-redirect-action"
91 style="display: <?php echo ($type === 'url_redirect' ? 'block' : 'none'); ?>;"
92 >
93 <label><?php echo __('The URL', 'advanced-access-manager'); ?></label>
94 <input
95 type="text"
96 class="form-control"
97 name="login.redirect.url"
98 placeholder="https://"
99 value="<?php echo stripslashes(esc_js(isset($settings['redirect_url']) ? $settings['redirect_url'] : '')); ?>"
100 />
101 </div>
102
103 <div
104 class="form-group login-redirect-action"
105 id="callback-login-redirect-action"
106 style="display: <?php echo ($type === 'trigger_callback' ? 'block' : 'none'); ?>;"
107 >
108 <label><?php echo __('PHP Callback Function', 'advanced-access-manager'); ?></label>
109 <input
110 type="text"
111 class="form-control"
112 placeholder="Enter valid callback"
113 name="login.redirect.callback"
114 value="<?php echo stripslashes(esc_js(isset($settings['callback']) ? $settings['callback'] : '')); ?>"
115 />
116 </div>
117 </div>
118 </div>
119 </div>
120 <?php }