← All changes
|
includes/classes/integrations/class-notifier-cf7.php
+5
-1
2.7.5
→
3.1.1
View file →
| @@ -1,5 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 3 | + exit; | |
| 4 | +} | |
| 5 | + | |
| 2 | 6 | /** |
| 3 | 7 | * Contact Form 7 notifications |
| 4 | 8 | * |
| 5 | 9 | * @package Wa_Notifier |
| @@ -106,9 +110,9 @@ | ||
| 106 | 110 | |
| 107 | 111 | $recipient_fields = array(); |
| 108 | 112 | foreach($form_fields as $field){ |
| 109 | 113 | |
| 110 | - if('tel' != $field->basetype){ | |
| 114 | + if(!in_array($field->basetype, array('tel', 'phonefield'))){ | |
| 111 | 115 | continue; |
| 112 | 116 | } |
| 113 | 117 | |
| 114 | 118 | $field_name = $field->name; |