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