AccessDeniedRedirect.php
1 year ago
AdminToolbar.php
1 year ago
ApiRoute.php
1 year ago
BackendMenu.php
1 year ago
Capability.php
1 year ago
Content.php
1 year ago
Identity.php
1 year ago
Jwt.php
1 year ago
LoginRedirect.php
1 year ago
LogoutRedirect.php
1 year ago
Metabox.php
1 year ago
NotFoundRedirect.php
1 year ago
Policy.php
1 year ago
Url.php
1 year ago
Welcome.php
1 year ago
Widget.php
1 year ago
AccessDeniedRedirect.php
54 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * ====================================================================== |
| 5 | * LICENSE: This file is subject to the terms and conditions defined in * |
| 6 | * file 'license.txt', which is part of this source code package. * |
| 7 | * ====================================================================== |
| 8 | */ |
| 9 | |
| 10 | /** |
| 11 | * Access Denied Redirect manager |
| 12 | * |
| 13 | * @package AAM |
| 14 | * @version 7.0.0 |
| 15 | */ |
| 16 | class AAM_Backend_Feature_Main_AccessDeniedRedirect |
| 17 | extends AAM_Backend_Feature_Abstract |
| 18 | { |
| 19 | |
| 20 | /** |
| 21 | * Default access capability to the service |
| 22 | * |
| 23 | * @version 7.0.0 |
| 24 | */ |
| 25 | const ACCESS_CAPABILITY = 'aam_manage_access_denied_redirect'; |
| 26 | |
| 27 | /** |
| 28 | * HTML template to render |
| 29 | * |
| 30 | * @version 7.0.0 |
| 31 | */ |
| 32 | const TEMPLATE = 'service/access-denied-redirect.php'; |
| 33 | |
| 34 | /** |
| 35 | * Register Access Denied Redirect UI feature |
| 36 | * |
| 37 | * @return void |
| 38 | * @access public |
| 39 | * |
| 40 | * @version 7.0.0 |
| 41 | */ |
| 42 | public static function register() |
| 43 | { |
| 44 | AAM_Backend_Feature::registerFeature((object) array( |
| 45 | 'uid' => 'redirect', |
| 46 | 'position' => 30, |
| 47 | 'title' => __('Access Denied Redirect', 'advanced-access-manager'), |
| 48 | 'capability' => self::ACCESS_CAPABILITY, |
| 49 | 'type' => 'main', |
| 50 | 'view' => __CLASS__ |
| 51 | )); |
| 52 | } |
| 53 | |
| 54 | } |