jetpack_forms_log

jetpack_forms_log

Hook Type: action

See hook in core

Displaying hooks found in version: jetpack.15.2

do_action('jetpack_forms_log') is found 3 times:

  • /jetpack_vendor/automattic/jetpack-forms/src/contact-form/class-contact-form-plugin.php line 1564
    			// 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 1755
    			 * @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 );
    
    			$accepts_json && wp_send_json_error(
    				array(
    					'error' => __( 'An error occurred. Please try again later.', 'jetpack-forms' ),
    					'code'  => $error_code,
    				),
    
  • /jetpack_vendor/automattic/jetpack-forms/src/contact-form/class-contact-form-plugin.php line 1773
    			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