From a1a530e4b8363c655783a85426347df14c967590 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Ruz=CC=8Cevic=CC=81?= Date: Wed, 17 Jan 2024 13:25:33 +0100 Subject: [PATCH] updating block admin enque --- src/Helpers/UtilsApiHelper.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Helpers/UtilsApiHelper.php b/src/Helpers/UtilsApiHelper.php index 674c229..f0e60ea 100644 --- a/src/Helpers/UtilsApiHelper.php +++ b/src/Helpers/UtilsApiHelper.php @@ -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); @@ -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,