1 | <?php |
||
25 | class EspressoTxnPage extends EspressoShortcode |
||
26 | { |
||
27 | |||
28 | |||
29 | |||
30 | /** |
||
31 | * the actual shortcode tag that gets registered with WordPress |
||
32 | * |
||
33 | * @return string |
||
34 | */ |
||
35 | public function getTag() |
||
39 | |||
40 | |||
41 | |||
42 | /** |
||
43 | * the time in seconds to cache the results of the processShortcode() method |
||
44 | * 0 means the processShortcode() results will NOT be cached at all |
||
45 | * |
||
46 | * @return int |
||
47 | */ |
||
48 | public function cacheExpiration() |
||
52 | |||
53 | |||
54 | /** |
||
55 | * a place for adding any initialization code that needs to run prior to wp_header(). |
||
56 | * this may be required for shortcodes that utilize a corresponding module, |
||
57 | * and need to enqueue assets for that module |
||
58 | * |
||
59 | * @return void |
||
60 | * @throws \Exception |
||
61 | * @throws \EE_Error |
||
62 | */ |
||
63 | public function initializeShortcode() |
||
97 | |||
98 | |||
99 | |||
100 | /** |
||
101 | * callback that runs when the shortcode is encountered in post content. |
||
102 | * IMPORTANT !!! |
||
103 | * remember that shortcode content should be RETURNED and NOT echoed out |
||
104 | * |
||
105 | * @param array $attributes |
||
106 | * @return string |
||
107 | */ |
||
108 | public function processShortcode($attributes = array()) |
||
115 | } |
||
116 | // End of file EspressoTxnPage.php |
||
117 | // Location: EventEspresso\core\domain\entities\shortcodes/EspressoTxnPage.php |