WordPress.org

Forums

Contact-Form-7: 3rd-Party Integration
What the service must return as data (5 posts)

  1. klode
    Member
    Posted 2 years ago #

    Hi,
    I'm trying to create a service inside my WordPress, like a single page, dedicated to check data into the form and more.

    Now, what the page must return as data, and in Whick format I need to send these data?

    On the third party services on the plugin I cannot understand which data these retrive from service Address...

    Thanks for your supply.

    http://wordpress.org/extend/plugins/contact-form-7-3rd-party-integration/

  2. Atlantic BT
    Member
    Plugin Author

    Posted 2 years ago #

    I really don't understand what you are trying to accomplish. You're going to have to provide a specific example of what you are trying to do in order for me to help you.

  3. Atlantic BT
    Member
    Plugin Author

    Posted 2 years ago #

    I'm closing this thread due to non-response, and to be honest I really don't understand the question or support issue this raises. Please feel free to create another thread with a little more detail about what you are trying to accomplish. Thank you.

  4. klode
    Member
    Posted 1 year ago #

    Hi,
    sorry for my delay on response.

    So my problem is this:

    1. I have a form with CF7 with some fields;
    2. I create a new Service with CF7 3-rd Party;
    3. I set as "submission Url" a php file on my plugin folder (*1);
    4. I create a new PHP file with class "Cf73rdParty_NewUserRegistrationCallbacks";
    5. I want make some check before sending emails;

    So:
    (1*) What this file must to be return as data? And how can I use the Class of the service to make some check before send emails?

    I know, my English is not so good! I hope you can understand my question.

  5. klode
    Member
    Posted 1 year ago #

    For a better information about using hooks, I found a little problem. I use a Class, like mailchimp service and all the other services on third-parties folder of the plugin.

    add_action('Cf73rdPartyIntegration_service_a0', array(&$this, 'data_registration_execute'), 10, 2);

    This is the action in the __construct method of the class.

    The method:

    public function data_registration_execute($response, $results){...}

    require on your code the using the "&" reference for $results, but I get (in debug mode) this error:

    Warning: Parameter 2 to Cf73rdParty_NewUserRegistrationCallbacks::data_registration_execute() expected to be a reference, value given

    So, the "&" reference is removed. In this mode, this method works fine.

    With the action "Cf73rdPartyIntegration_onfailure", I can get the "errors" element from the action "Cf73rdPartyIntegration_service_a0", so I can check which type of error I get.
    But the command:

    $cf7->skip_mail=true;

    it seems to not work properly, because it sends the mail.

    Does I made something wrong?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact-Form-7: 3rd-Party Integration
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic