Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add logic to disable Jetpack contact form on jetpack.wp-a2z.org #16

Open
bobbingwide opened this issue Mar 22, 2019 · 1 comment
Open
Assignees

Comments

@bobbingwide
Copy link
Owner

bobbingwide commented Mar 22, 2019

The sample contact forms required to produce examples of Jetpacks form fields should work but do nothing .

Requirement

  • In jetpack.wp-a2z.org we want the form to basically do nothing on submission.

Proposed solution

  • Find the right filter that will prevent the form from being submitted
  • It would be nice if we don't even get entries created in Feedback.

Notes: Returning true to jetpack_contact_form_is_spam doesn't work as a short circuit.
How about returning a wp_error!

@bobbingwide
Copy link
Owner Author

Returning a WP_Error seems to work as follows:

  • The Feedback post is not created
  • No email is sent
  • The page is re-displayed.
  • The WP_Error is forgotten about.
    The page is simply re-displayed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant