trigger-base.php in Elementor Website Builder – more than just a page builder 4.2.0, at modules/announcements/classes/trigger-base.php
| 1 | <?php |
| 2 | |
| 3 | namespace Elementor\Modules\Announcements\Classes; |
| 4 | |
| 5 | if ( ! defined( 'ABSPATH' ) ) { |
| 6 | exit; // Exit if accessed directly. |
| 7 | } |
| 8 | |
| 9 | abstract class Trigger_Base { |
| 10 | |
| 11 | /** |
| 12 | * @var string |
| 13 | */ |
| 14 | protected $name = 'trigger-base'; |
| 15 | |
| 16 | /** |
| 17 | * @return string |
| 18 | */ |
| 19 | public function get_name(): string { |
| 20 | return $this->name; |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * @return bool |
| 25 | */ |
| 26 | public function is_active(): bool { |
| 27 | return true; |
| 28 | } |
| 29 | |
| 30 | public function after_triggered() { |
| 31 | } |
| 32 | } |
| 33 |