| @@ -1,4 +1,4 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * @version 1.1 |
| 4 | 4 | * @package Booking Calendar |
| @@ -156,9 +156,9 @@ | ||
| 156 | 156 | $pure_name = $matches[1]; |
| 157 | 157 | $pure_email = $matches[2]; |
| 158 | 158 | } |
| 159 | 159 | } else { // Check about correct format of email |
| 160 | - if( preg_match( '/([\w\.\-_]+)?\w+@[\w-_]+(\.\w+){1,}/im', $email_to_parse, $matches ) ) { | |
| 160 | + if( preg_match( '/([\w\.\-_]+)?\w+@[\w\-_]+(\.\w+){1,}/im', $email_to_parse, $matches ) ) { | |
| 161 | 161 | $pure_email = $matches[0]; |
| 162 | 162 | } |
| 163 | 163 | } |
| 164 | 164 | |
| @@ -411,10 +411,10 @@ | ||
| 411 | 411 | /* translators: 1: ... */ |
| 412 | 412 | $fields[] = sprintf(__( 'Example #2: "%s" - English and French translation of some message' ,'booking'),'<code>Thank you for your booking.[lang=fr_FR]Je vous remercie de votre reservation.</code>'); |
| 413 | 413 | |
| 414 | 414 | |
| 415 | - return $fields; | |
| 416 | -} | |
| 415 | + return (array) apply_filters( 'wpbc_email_help_shortcodes', $fields, $skip_shortcodes, $email_example ); | |
| 416 | +} | |
| 417 | 417 | |
| 418 | 418 | |
| 419 | 419 | function wpbc_email_troubleshooting_help_notice(){ |
| 420 | 420 | |
| @@ -602,5 +602,5 @@ | ||
| 602 | 602 | // Error that have no description. Its can be Empty Object like this: WP_Error Object( 'errors' => array(), 'error_data' => array() ), or NOT |
| 603 | 603 | // debuge( $wp_error_object ); |
| 604 | 604 | } |
| 605 | 605 | } |
| 606 | -add_action('wpbc_email_sending_error', 'wpbc_email_sending_error', 10, 2); | |
| 606 | +add_action('wpbc_email_sending_error', 'wpbc_email_sending_error', 10, 2); | |