1 | <?php |
||
22 | class EspressoCancelled extends EspressoShortcode |
||
23 | { |
||
24 | |||
25 | |||
26 | |||
27 | /** |
||
28 | * the actual shortcode tag that gets registered with WordPress |
||
29 | * |
||
30 | * @return string |
||
31 | */ |
||
32 | public function getTag() |
||
36 | |||
37 | |||
38 | |||
39 | /** |
||
40 | * the time in seconds to cache the results of the processShortcode() method |
||
41 | * 0 means the processShortcode() results will NOT be cached at all |
||
42 | * |
||
43 | * @return int |
||
44 | */ |
||
45 | public function cacheExpiration() |
||
49 | |||
50 | |||
51 | /** |
||
52 | * a place for adding any initialization code that needs to run prior to wp_header(). |
||
53 | * this may be required for shortcodes that utilize a corresponding module, |
||
54 | * and need to enqueue assets for that module |
||
55 | * |
||
56 | * @return void |
||
57 | */ |
||
58 | public function initializeShortcode() |
||
62 | |||
63 | |||
64 | /** |
||
65 | * callback that runs when the shortcode is encountered in post content. |
||
66 | * IMPORTANT !!! |
||
67 | * remember that shortcode content should be RETURNED and NOT echoed out |
||
68 | * |
||
69 | * @param array $attributes |
||
70 | * @return string |
||
71 | * @throws \EE_Error |
||
72 | */ |
||
73 | public function processShortcode($attributes = array()) |
||
100 | |||
101 | } |
||
102 | // End of file EspressoCancelled.php |
||
103 | // Location: EventEspresso\core\domain\entities\shortcodes/EspressoCancelled.php |