jetpack_forms_log
jetpack_forms_log
Hook Type: action
Displaying hooks found in version: jetpack.15.3.1do_action('jetpack_forms_log') is found 8 times:
- /jetpack_vendor/automattic/jetpack-forms/src/contact-form/class-contact-form-plugin.php line 1603
// Process the form return $form->process_submission(); } /** This action is documented already in this file. */ do_action( 'jetpack_forms_log', 'submission_missing_jwt' ); if ( $is_widget ) { // It's a form embedded in a text widget $this->current_widget_id = substr( $id, 7 ); // remove "widget-" $widget_type = implode( '-', array_slice( explode( '-', $this->current_widget_id ), 0, -1 ) ); // Remove trailing -# - /jetpack_vendor/automattic/jetpack-forms/src/contact-form/class-contact-form-plugin.php line 1814
* @param string $log_message The log message. * @param string $error_code The error code (optional). * @param string $error_details The error details (optional). */ do_action( 'jetpack_forms_log', 'submission_failed', $error_code, $error_details ); // Use a specific error message for invalid JWT tokens $error_message = ( 'invalid_jwt' === $error_code ) ? __( 'An error occurred. Please reload the page and try again β data entered may be lost.', 'jetpack-forms' ) : __( 'An error occurred. Please try again later.', 'jetpack-forms' );
- /jetpack_vendor/automattic/jetpack-forms/src/contact-form/class-contact-form-plugin.php line 1837
echo '</li></ul></div>'; die(); } elseif ( is_wp_error( $submission_result ) ) { do_action( 'jetpack_forms_log', $submission_result->get_error_message() ); $accepts_json && wp_send_json_error( array( 'error' => $submission_result->get_error_message(), ), 400 - /jetpack_vendor/automattic/jetpack-forms/src/contact-form/class-contact-form-plugin.php line 1884
// If the parent post doesn't exist or is not trashed/deleted, reject the submission if ( ! $parent_post || in_array( $parent_post->post_status, array( 'trash', 'auto-draft' ), true ) ) { /** This action is documented already in this file. */ do_action( 'jetpack_forms_log', 'submission_rejected_parent_trashed_or_deleted' ); return Form_Submission_Error::system_error( 'form_unavailable', __( 'This form is no longer available.', 'jetpack-forms' ) ); } - /jetpack_vendor/automattic/jetpack-forms/src/contact-form/class-contact-form.php line 600
$tag ); if ( $encrypted === false ) { do_action( 'jetpack_forms_log', 'jwt_encryption_failed', openssl_error_string() ); return JWT::encode( $unencrypted_payload, $jwt_signing_key ); } // For GCM, include the authentication tag; for CBC, tag will be empty $encrypted_blob = stripos( $cipher, 'GCM' ) !== false ? $iv . $tag . $encrypted : $iv . $encrypted; return JWT::encode( - /jetpack_vendor/automattic/jetpack-forms/src/service/class-form-webhooks.php line 174
continue; } // Validate webhook configuration if ( empty( $setup['url'] ) ) { do_action( 'jetpack_forms_log', 'webhook_skipped', 'url_empty' ); continue; } // Validate format if ( ! array_key_exists( strtolower( $setup['format'] ), self::VALID_FORMATS_MAP ) ) { do_action( 'jetpack_forms_log', 'webhook_skipped', 'format_invalid', $setup ); - /jetpack_vendor/automattic/jetpack-forms/src/service/class-form-webhooks.php line 180
} // Validate format if ( ! array_key_exists( strtolower( $setup['format'] ), self::VALID_FORMATS_MAP ) ) { do_action( 'jetpack_forms_log', 'webhook_skipped', 'format_invalid', $setup ); continue; } // Validate method if ( ! in_array( strtoupper( $setup['method'] ), self::VALID_METHODS, true ) ) { do_action( 'jetpack_forms_log', 'webhook_skipped', 'method_invalid', $setup ); - /jetpack_vendor/automattic/jetpack-forms/src/service/class-form-webhooks.php line 186
} // Validate method if ( ! in_array( strtoupper( $setup['method'] ), self::VALID_METHODS, true ) ) { do_action( 'jetpack_forms_log', 'webhook_skipped', 'method_invalid', $setup ); continue; } $enabled_webhooks[] = array( 'webhook_id' => $setup['webhook_id'], 'url' => $setup['url'],