Exemplo n.º 1
0
 function __construct()
 {
     parent::__construct();
     if (is_admin()) {
         wpcf_admin_add_js_settings('wpcf_repetitive_last_warning', __('Sorry, can not delete all fields.', 'wpcf'));
     }
 }
Exemplo n.º 2
0
 function __construct()
 {
     parent::__construct();
     $fields = new WPCF_Fields();
     foreach ($fields->fields->all as $f_id => $f) {
         if (!empty($f['data']['conditional_display']['conditions'])) {
             foreach ($f['data']['conditional_display']['conditions'] as $condition) {
                 $this->collected[$f_id][] = $condition;
                 if (!empty($condition['field'])) {
                     $this->triggers[$condition['field']][$f_id][] = $condition;
                 }
             }
         }
     }
 }
Exemplo n.º 3
0
 function __construct()
 {
     parent::__construct();
 }