1 | <?php |
||
19 | class EspressoTicketSelector extends EspressoShortcode |
||
20 | { |
||
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 | */ |
||
55 | public function initializeShortcode() |
||
59 | |||
60 | |||
61 | |||
62 | /** |
||
63 | * callback that runs when the shortcode is encountered in post content. |
||
64 | * IMPORTANT !!! |
||
65 | * remember that shortcode content should be RETURNED and NOT echoed out |
||
66 | * |
||
67 | * @param array $attributes |
||
68 | * @return string |
||
69 | */ |
||
70 | public function processShortcode($attributes = array()) |
||
80 | } |
||
81 | // End of file EspressoTicketSelector.php |
||
82 | // Location: EventEspresso\core\domain\entities\shortcodes/EspressoTicketSelector.php |