Skip to content

Commit

Permalink
hotfix filter name (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
iruzevic authored Mar 13, 2024
1 parent f95410f commit 2f06e90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions website/forms/php/filters/block/form/result-output-items.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Allows modifying _Form result output parts_ using an API to change which block i
Used by the `result-output-item` block.

```php
add_filter('es_forms_integrations_form_result_output_items', 'getIntegrationResultOutputItems', 10, 3);
add_filter('es_forms_block_form_result_output_items', 'getFormResultOutputItems', 10, 3);

/**
* Populate Result output items in the API response data used in 'result-output-item' block.
Expand All @@ -19,7 +19,7 @@ add_filter('es_forms_integrations_form_result_output_items', 'getIntegrationResu
*
* @return array<string, mixed>
*/
function getIntegrationResultOutputItems(array $output, array $formDetails, string $formId): array
function getFormResultOutputItems(array $output, array $formDetails, string $formId): array
{
$output['testKeys'] = 'testValue';

Expand Down
4 changes: 2 additions & 2 deletions website/forms/php/filters/block/form/result-output-parts.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Allows modifying _Form result output parts_ using an API to change which shortco
Used by the `esFormsROIP` shortcode.

```php
add_filter('es_forms_integrations_form_result_output_parts', 'getIntegrationResultOutputParts', 10, 3);
add_filter('es_forms_block_form_result_output_parts', 'getFormResultOutputParts', 10, 3);

/**
* Populate result output parts in the API response data used in the 'esFormsROIP' shortcode.
Expand All @@ -19,7 +19,7 @@ add_filter('es_forms_integrations_form_result_output_parts', 'getIntegrationResu
*
* @return array<string, mixed>
*/
function getIntegrationResultOutputParts(array $output, array $formDetails, string $formId): array
function getFormResultOutputParts(array $output, array $formDetails, string $formId): array
{
$output['testKeys'] = 'testValue';

Expand Down

0 comments on commit 2f06e90

Please sign in to comment.