1 | <?php |
||
20 | class EspressoCheckout extends EspressoShortcode |
||
21 | { |
||
22 | |||
23 | |||
24 | /** |
||
25 | * the actual shortcode tag that gets registered with WordPress |
||
26 | * |
||
27 | * @return string |
||
28 | */ |
||
29 | public function getTag() |
||
33 | |||
34 | |||
35 | |||
36 | /** |
||
37 | * the time in seconds to cache the results of the processShortcode() method |
||
38 | * 0 means the processShortcode() results will NOT be cached at all |
||
39 | * |
||
40 | * @return int |
||
41 | */ |
||
42 | public function cacheExpiration() |
||
46 | |||
47 | |||
48 | /** |
||
49 | * a place for adding any initialization code that needs to run prior to wp_header(). |
||
50 | * this may be required for shortcodes that utilize a corresponding module, |
||
51 | * and need to enqueue assets for that module |
||
52 | * |
||
53 | * @return void |
||
54 | * @throws \EE_Error |
||
55 | */ |
||
56 | public function initializeShortcode() |
||
61 | |||
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 | */ |
||
72 | public function processShortcode($attributes = array()) |
||
76 | |||
77 | |||
78 | |||
79 | } |
||
80 | // End of file EspressoCheckout.php |
||
81 | // Location: EventEspresso\core\domain\entities\shortcodes/EspressoCheckout.php |