jetpack_forms_before_webhook_request
jetpack_forms_before_webhook_request
Appears in: jetpack.15.3.1, jetpack.15.4
Hook Type: filter
Displaying hooks found in version: jetpack.15.4apply_filters('jetpack_forms_before_webhook_request') is found 1 times:
- /jetpack_vendor/automattic/jetpack-forms/src/service/class-form-webhooks.php line 258
* @param int $feedback_id The unique identifier for the feedback post. * * @return array The form data to be sent (field IDs as keys, values as values). */ $data = apply_filters( 'jetpack_forms_before_webhook_request', $data, $webhook['webhook_id'], $feedback_id ); $user_agent = "WordPress/{$wp_version} | Jetpack/" . constant( 'JETPACK__VERSION' ) . '; ' . get_bloginfo( 'url' ); $url = $webhook['url']; $format = self::VALID_FORMATS_MAP[ $webhook['format'] ]; $method = $webhook['method']; // Encode body based on format