• Resolved regdafeel

    (@regdafeel)


    Hi,

    we are using your plugin with success for a while now. However, recently we had started receiving ambiguous data.

    We suspect its only spam, but would like to know for sure that plugin is not corrupting the data.

    Therefore I tried to capture data before is submitted to SF using that:


    add_action(‘salesforce_w2l_before_submit’, ‘salesforce_w2l_before_submit_example’, 10, 3 );

    function salesforce_w2l_before_submit_example( $post, $form_id, $form_type ){
    error_log( ‘BEFORE SUBMIT ‘.print_r($post,1) );
    }

    I added it to function.php and enable debug in WP, but do not see anything coming to error log, Am I missing something?

    https://wordpress.org/plugins/salesforce-wordpress-to-lead/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Nick Ciske

    (@nickciske)

    Works for me.

    You sure you have debugging configured correctly?

    define(‘WP_DEBUG’, true);
    define(‘WP_DEBUG_DISPLAY’, false);
    define(‘WP_DEBUG_LOG’, true);

    Then look in /wp-content/debug.log after a successful form submission.

    Thread Starter regdafeel

    (@regdafeel)

    I just noticed that, my plugin version didn’t have an action so it just needed an update.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Capture data and send it to email before its send to Saleforce’ is closed to new replies.