| @@ -27,9 +27,9 @@ | ||
| 27 | 27 | /** |
| 28 | 28 | * Register the triggers |
| 29 | 29 | */ |
| 30 | 30 | public function register() { |
| 31 | - error_log( 'WPbot Automator - CF7_Triggers::register() called' ); | |
| 31 | + //error_log( 'WPbot Automator - CF7_Triggers::register() called' ); | |
| 32 | 32 | add_action( 'wpcf7_mail_sent', array( $this, 'handle_cf7' ), 10, 1 ); |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | /** |
| @@ -35,9 +35,9 @@ | ||
| 35 | 35 | /** |
| 36 | 36 | * Handle Contact Form 7. |
| 37 | 37 | */ |
| 38 | 38 | public function handle_cf7( $contact_form ) { |
| 39 | - error_log( 'WPbot Automator - handle_cf7 called for form ID: ' . $contact_form->id() ); | |
| 39 | + //error_log( 'WPbot Automator - handle_cf7 called for form ID: ' . $contact_form->id() ); | |
| 40 | 40 | $submission = \WPCF7_Submission::get_instance(); |
| 41 | 41 | if ( $submission ) { |
| 42 | 42 | $posted_data = $submission->get_posted_data(); |
| 43 | 43 | $data = array( |
| @@ -93,9 +93,9 @@ | ||
| 93 | 93 | if ( ! isset( $data['name'] ) && isset( $data['full_name'] ) ) { |
| 94 | 94 | $data['name'] = $data['full_name']; |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | - error_log( 'WPbot Automator - CF7 Trigger Firing with mapped data: ' . wp_json_encode( $data ) ); | |
| 97 | + //error_log( 'WPbot Automator - CF7 Trigger Firing with mapped data: ' . wp_json_encode( $data ) ); | |
| 98 | 98 | $this->run( array( |
| 99 | 99 | 'sub_id' => 'cf7_submit', |
| 100 | 100 | 'data' => $data, |
| 101 | 101 | ) ); |