• Documentation
  • Support / Community
  • Products
    • Piklist Framework
    • Toolbox
    • Fields and Forms
    • WordPress Helpers
  • Log In
Piklist

Access your account, and post on the Support Forums

Retrieve Password | Register for account

Topic: how best to intercept user registration on submit?

Support Home » Topics » Piklist » how best to intercept user registration on submit?

Tagged: FEF alter submitted values?

  • This topic has 2 replies, 2 voices, and was last updated 1 year, 9 months ago by devr52.
Viewing 2 reply threads
  • Author
    Posts
    • May 7, 2019 at 6:37 pm #9383
      devr52
      Participant

      I am attempting to create a custom user registration front end form.
      I would like to validate some fields and change some fields upon submission /before/ they are saved to the db.

      Attempting to use the piklist_save_fields action gets a nasty data structure internal to piklist that has all of the submitted field contents.

      I don’t want my code to have to depend on understanding that structure.
      Is there a straight-forward way to subscribe to a specific form submission, and get access to modify the $_REQUEST before piklist does its thing?

      E.g., I want to set username = md5(email) or maybe just esc_text(email).
      I also want to force the role to ” (empty), so I have it as a hidden piklist, but obviously don’t want to allow someone to elevate their role.

      The documentation has a list of filters, but not of the actions inside piklist. I found it by grepping.

    • April 19, 2020 at 3:44 pm #10631
      courtens
      Participant

      I am trying to do something similar. And I am not sure if it is a good idea to misuse the “Demo User Types” example for that.

      Did you get it to work? And what did you end up doing?

    • April 19, 2020 at 11:06 pm #10633
      devr52
      Participant

      It wasn’t simple, and it took a fairly large amount of time to make work, including modifying piklist itself, new custom js, and figuring out all the right wp hooks to use (and the docs on the register/login flow hooks are terrible since the entire thing changed at some point).

  • Author
    Posts
Viewing 2 reply threads
  • You must be logged in to reply to this topic.
Log In

Log in / Register

Register for an Account

Stay up-to-date with Piklist

About

  • Philosophy
  • Privacy Policy
  • Terms of Service
  • Contact Us
  • Register for an account

Resources

  • Community Forums
  • Documentation
  • Tutorials
  • Get involved

Follow Piklist

  • Like us on Facebook
  • Follow us on Twitter
  • Connect on Google +
  • Watch on YouTube

Rate Piklist


If you love Piklist leave us a 5 Star review on WordPress.org.

News

  • Piklist v0.9.9.8 is now available

    September 30, 2019

    In October of 2015, we released v0.9.9 of Piklist. Your help in testing lead to seven(7) m ...

  • Piklist is now on HackerOne

    September 30, 2019

    We built Piklist from the ground up with security as our top priority. While we’ve t ...

  • Read all News
  • Powered by Piklist & WordPress © 2009 – 2022 Piklist LLC.
    This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to the use of cookies. Find out more.