Support » Plugin: Contact Form 7 » add data to apiResponse from php?

  • Resolved codemonkeynorth

    (@codemonkeynorth)


    [updated: leaving code for reference.. does still work]

    Hi,

    we used to be able to add data to the json response with eg

    function filter_wpcf7_ajax_json_echo( $items, $result ) {
    $items['foo'] = 'bar';
    return $items;
    }

    but this no longer seems to work with v5.1.6 ?

    how would we do this now please?

    thanks
    J

  • You must be logged in to reply to this topic.