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
NotFoundRedirect.php
53 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 | * Backend 404 redirect manager |
| 12 | * |
| 13 | * @package AAM |
| 14 | * @version 7.0.0 |
| 15 | */ |
| 16 | class AAM_Backend_Feature_Main_NotFoundRedirect extends AAM_Backend_Feature_Abstract |
| 17 | { |
| 18 | |
| 19 | /** |
| 20 | * Default access capability to the service |
| 21 | * |
| 22 | * @version 7.0.0 |
| 23 | */ |
| 24 | const ACCESS_CAPABILITY = 'aam_manage_404_redirect'; |
| 25 | |
| 26 | /** |
| 27 | * HTML template to render |
| 28 | * |
| 29 | * @version 7.0.0 |
| 30 | */ |
| 31 | const TEMPLATE = 'service/not-found-redirect.php'; |
| 32 | |
| 33 | /** |
| 34 | * Register 404 redirect feature |
| 35 | * |
| 36 | * @return void |
| 37 | * @access public |
| 38 | * |
| 39 | * @version 7.0.0 |
| 40 | */ |
| 41 | public static function register() |
| 42 | { |
| 43 | AAM_Backend_Feature::registerFeature((object) [ |
| 44 | 'uid' => '404redirect', |
| 45 | 'position' => 50, |
| 46 | 'title' => __('404 Redirect', 'advanced-access-manager'), |
| 47 | 'capability' => self::ACCESS_CAPABILITY, |
| 48 | 'type' => 'main', |
| 49 | 'view' => __CLASS__ |
| 50 | ]); |
| 51 | } |
| 52 | |
| 53 | } |