API_Action::process_response( APIAPI\Core\Request\Route_Response $response, APIAPI\Core\Request\Route_Request $request, awsmug\Torro_Forms\DB_Objects\Submissions\Submission $submission, awsmug\Torro_Forms\DB_Objects\Forms\Form $form )

Processes a response from an API request for a submission.

Description

See also

Parameters

$response

(APIAPI\Core\Request\Route_Response) (Required) API response object to process.

$request

(APIAPI\Core\Request\Route_Request) (Required) Original API request object the response addresses.

$submission

(awsmug\Torro_Forms\DB_Objects\Submissions\Submission) (Required) Submission for which the API request was made.

$form

(awsmug\Torro_Forms\DB_Objects\Forms\Form) (Required) Form the submission applies to.

Return

(bool|WP_Error) True on success, error object on failure.

Source

File: src/modules/actions/api-action.php

	protected function process_response( $response, $request, $submission, $form ) {
		// The default implementation is to simply return true.
		return true;
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.