jetpack_forms_log

jetpack_forms_log

Hook Type: action

See hook in core

Displaying hooks found in version: jetpack.15.1.1

do_action('jetpack_forms_log') is found 3 times:

  • /jetpack_vendor/automattic/jetpack-forms/src/contact-form/class-contact-form-plugin.php line 1520
    			// 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 1705
    			 * @since 6.3.0
    			 *
    			 * @param string $log_message The log message.
    			 */
    			do_action( 'jetpack_forms_log', 'submission_failed' );
    			$accepts_json && wp_send_json_error(
    				array(
    					'error' => __( 'An error occurred. Please try again later.', 'jetpack-forms' ),
    				),
    				500
    			);
    
  • /jetpack_vendor/automattic/jetpack-forms/src/contact-form/class-contact-form-plugin.php line 1721
    			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
    			);