Support » Plugin: Contact-Form-7: 3rd-Party Integration » What the service must return as data

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Atlantic BT

    (@atlanticbt)

    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.

    Plugin Author Atlantic BT

    (@atlanticbt)

    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.

    klode

    (@klode)

    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.

    klode

    (@klode)

    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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘What the service must return as data’ is closed to new replies.