The previous hook was causing the additional field to display multiple times. This hook only displays once.
Resolves #15
Description
Before, when logged-out visitors viewed a form, if registration and login fields were enabled, the DtD search field displayed twice. Now it does not.
Affects
The location of the output
Visuals
Testing Instructions
Install GiveWP
Install this PR
Put in our test credentials in the DtD settings (contact Me on Slack for those credentials)
Create a form (any template) and navigate in that form's settings to the form Fields tab
Enable either the "login" or "registration + Login" option. (see image)
Save or publish the form.
Visit the front end of the form.
For Classic and legacy, scroll to see that the DtD field is added twice as in the image on the original post. For Multistep, click through to the appropriate step of the form.
Pre-review Checklist
[ ] Acceptance criteria satisfied and marked in related issue
[ ] Relevant @unreleased tags included in DocBlocks
The previous hook was causing the additional field to display multiple times. This hook only displays once.
Resolves #15
Description
Before, when logged-out visitors viewed a form, if registration and login fields were enabled, the DtD search field displayed twice. Now it does not.
Affects
The location of the output
Visuals
Testing Instructions
Pre-review Checklist
@unreleased
tags included in DocBlocks