conditions
3 years ago
events
3 years ago
methods
3 years ago
types
3 years ago
action-handler.php
3 years ago
action-localize.php
3 years ago
actions-tools.php
3 years ago
events-list.php
3 years ago
events-manager.php
3 years ago
manager.php
3 years ago
send-email-hooks.php
3 years ago
action-localize.php
36 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace Jet_Form_Builder\Actions; |
| 5 | |
| 6 | trait Action_Localize { |
| 7 | |
| 8 | abstract public function get_id(); |
| 9 | |
| 10 | abstract public function get_name(); |
| 11 | |
| 12 | public function self_script_name() { |
| 13 | $id = str_replace( '-', '_', $this->get_id() ); |
| 14 | |
| 15 | return "JetFormAction_{$id}"; |
| 16 | } |
| 17 | |
| 18 | public function editor_labels() { |
| 19 | return array(); |
| 20 | } |
| 21 | |
| 22 | public function editor_labels_help() { |
| 23 | return array(); |
| 24 | } |
| 25 | |
| 26 | /** |
| 27 | * Register custom action data |
| 28 | * |
| 29 | * @return array [description] |
| 30 | */ |
| 31 | public function action_data() { |
| 32 | return array(); |
| 33 | } |
| 34 | |
| 35 | } |
| 36 |