Viewing 3 reply threads
  • Author
    Posts
    • #3233

      A client needs a solution where after changing the status of a custom field, four different kinds of events would be triggered:

      1. A payment would be initiated (already have cc data) at authorize.net
      2. A new page would be created populated with html + custom field data
      3. A new member login would be created that gives access to that new page only.
      4. An email would be sent out populated with some custom field data and the login info from #3.

      Realize that is a lot and probably not the intended use case for on_post_status but can on_post_status be used for those kinds of triggers?

    • #3234
      Steve
      Keymaster

      @claritywebworks– Welcome to the Piklist Community!

      Unfortunately on_post_status is not designed for this… though it would be cool in future versions of Piklist.

      I suggest you stick with standard WordPress functions. The codex shows a great example of how to send an email automatically using the save_post hook. Use this hook to check the value of your custom field and then trigger the necessary events.

      Does that help?

    • #3235

      Thanks Steve — will read up on that link!

    • #3236
      Steve
      Keymaster

      Great. Let us know if you need anything else. Closing this ticket.

Viewing 3 reply threads
  • The topic ‘Using on_post_status to trigger events’ is closed to new replies.