PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Create user and site before update_paypal_query is fired

  1. brentoe
    Member

    Hi,

    I am trying to integrate the user registration plugin, paypal payments and WPMU Pro Sites plugins all together.

    There is a post on WPMUDev (http://premium.wpmudev.org/forums/topic/q-for-prosites-developers-creating-login-blog-with-gravity-forms-what-to-pass-to-pro-sites) with some ideas on how to integrate the Gf user registration and pro sites, but in that example, the person is wanting to take payment, then create the site. I am quite happy to create the site, then take the payment so that I can specify the info that pro sites requires in the "CUSTOM" argument (sent to paypal) then return that info to Pro Sites so that it all works smoothly.

    The problem I am having is that the update_paypal_query (where I am planning to add to the CUSTOM argument) gets fired before gform_site_created, which is where I get the Blog ID and other info that I need to add to the query from the created site.

    My question is, is there a way that anyone knows of to run the create user + site functionality before the update_paypal_query get fired?

    Side notes ::
    I realise that gf_paypal uses the custom argument itself and will work around that and same with the IPN url, my major problem at the moment is the order these things happen in - I can deal with these things after.

    Posted 11 years ago on Sunday June 17, 2012 | Permalink