Skip to content

Commit

Permalink
updating block admin enque
Browse files Browse the repository at this point in the history
  • Loading branch information
iruzevic committed Jan 17, 2024
1 parent 7799159 commit a1a530e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Helpers/UtilsApiHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public static function getApiPublicAdditionalDataOutput(array $formDetails): arr
*/
public static function getIntegrationApiPublicOutput(array $formDetails, string $msg): array
{
$response = $formDetails[UtilsConfig::IARD_RESPONSE] ?? [];
$response = $formDetails[UtilsConfig::FD_RESPONSE_OUTPUT_DATA] ?? [];
$status = $response[UtilsConfig::IARD_STATUS] ?? UtilsConfig::STATUS_ERROR;

$additionalOutput = self::getApiPublicAdditionalDataOutput($formDetails);
Expand All @@ -176,6 +176,11 @@ public static function getIntegrationApiPublicOutput(array $formDetails, string
}

if ($status === UtilsConfig::STATUS_SUCCESS) {
$actionName = UtilsHooksHelper::getActionName(['entries', 'saveEntry']);
if (\has_action($actionName)) {
\do_action($actionName, $formDetails);
}

return self::getApiSuccessPublicOutput(
$msg,
$additionalOutput,
Expand Down

0 comments on commit a1a530e

Please sign in to comment.