1 | <?php |
||
20 | class EspressoThankYou extends EspressoShortcode |
||
21 | { |
||
22 | |||
23 | /** |
||
24 | * @var boolean $is_thank_you_page |
||
25 | */ |
||
26 | private $is_thank_you_page = false; |
||
27 | |||
28 | /** |
||
29 | * the actual shortcode tag that gets registered with WordPress |
||
30 | * |
||
31 | * @return string |
||
32 | */ |
||
33 | public function getTag() |
||
37 | |||
38 | |||
39 | |||
40 | /** |
||
41 | * the time in seconds to cache the results of the processShortcode() method |
||
42 | * 0 means the processShortcode() results will NOT be cached at all |
||
43 | * |
||
44 | * @return int |
||
45 | */ |
||
46 | public function cacheExpiration() |
||
50 | |||
51 | |||
52 | /** |
||
53 | * a place for adding any initialization code that needs to run prior to wp_header(). |
||
54 | * this may be required for shortcodes that utilize a corresponding module, |
||
55 | * and need to enqueue assets for that module |
||
56 | * |
||
57 | * @return void |
||
58 | * @throws \EE_Error |
||
59 | */ |
||
60 | public function initializeShortcode() |
||
73 | |||
74 | |||
75 | |||
76 | /** |
||
77 | * callback that runs when the shortcode is encountered in post content. |
||
78 | * IMPORTANT !!! |
||
79 | * remember that shortcode content should be RETURNED and NOT echoed out |
||
80 | * |
||
81 | * @param array $attributes |
||
82 | * @return string |
||
83 | * @throws \EE_Error |
||
84 | */ |
||
85 | public function processShortcode($attributes = array()) |
||
91 | |||
92 | |||
93 | |||
94 | } |
||
95 | // End of file EspressoThankYou.php |
||
96 | // Location: EventEspresso\core\domain\entities\shortcodes/EspressoThankYou.php |