field-dynamic-message.php
7 years ago
settings-data.php
7 years ago
settings-permissions.php
7 years ago
settings-update.php
7 years ago
settings-validation.php
7 years ago
field-dynamic-message.php
24 lines
| 1 | <?php |
| 2 | |
| 3 | if(!defined('ABSPATH')) |
| 4 | exit; |
| 5 | |
| 6 | add_action('acf/include_field_types', function(){ |
| 7 | |
| 8 | class acfe_field_dynamic_message extends acf_field{ |
| 9 | |
| 10 | function __construct(){ |
| 11 | $this->name = 'acfe_dynamic_message'; |
| 12 | $this->label = __('Dynamic Message', 'acfe'); |
| 13 | $this->category = 'layout'; |
| 14 | |
| 15 | // do not delete! |
| 16 | parent::__construct(); |
| 17 | } |
| 18 | |
| 19 | } |
| 20 | |
| 21 | // create field |
| 22 | new acfe_field_dynamic_message(); |
| 23 | |
| 24 | }); |