Shortcode
4 months ago
AccessDeniedRedirect.php
1 year ago
AdminToolbar.php
1 year ago
ApiRoute.php
1 year ago
BackendMenu.php
1 year ago
BaseTrait.php
1 year ago
Capability.php
1 year ago
Content.php
4 months ago
Core.php
8 months ago
Hooks.php
1 year ago
Identity.php
1 month ago
Jwt.php
1 month ago
LoginRedirect.php
1 year ago
LogoutRedirect.php
1 month ago
Metaboxes.php
1 year ago
NotFoundRedirect.php
1 year ago
Policies.php
1 year ago
SecureLogin.php
1 year ago
SecurityAudit.php
1 year ago
Shortcodes.php
4 months ago
Urls.php
1 year ago
Welcome.php
1 year ago
Widgets.php
1 year ago
Shortcodes.php
48 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 | * AAM custom shortcodes service |
| 12 | * |
| 13 | * @package AAM |
| 14 | * @version 7.1.0 |
| 15 | */ |
| 16 | class AAM_Service_Shortcodes |
| 17 | { |
| 18 | |
| 19 | use AAM_Service_BaseTrait; |
| 20 | |
| 21 | /** |
| 22 | * Constructor |
| 23 | * |
| 24 | * @return void |
| 25 | * @access protected |
| 26 | * |
| 27 | * @version 7.1.0 |
| 28 | */ |
| 29 | protected function __construct() |
| 30 | { |
| 31 | if (!is_admin()) { |
| 32 | add_shortcode('aam', function ($args, $content) { |
| 33 | $shortcode = new AAM_Service_Shortcode_Factory($args, $content); |
| 34 | |
| 35 | return $shortcode->process(); |
| 36 | }); |
| 37 | |
| 38 | add_shortcode('aam-login', function($args, $content) { |
| 39 | $shortcode = new AAM_Service_Shortcode_Handler_LoginForm( |
| 40 | $args, $content |
| 41 | ); |
| 42 | |
| 43 | return $shortcode->run(); |
| 44 | }); |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | } |