PluginProbe
Advanced Access Manager – Access Governance for WordPress / 7.1.2
Advanced Access Manager – Access Governance for WordPress v7.1.2
7.1.4 7.1.2 7.1.3 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 All 210 releases
advanced-access-manager / application / Service / Shortcodes.php
Shortcodes.php
48 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 }