Reply To: Getting just the data out…

Home Forums Quform WordPress Getting just the data out… Reply To: Getting just the data out…

#32261
jwrbloom
Participant

Still getting…

Fatal error: Uncaught Error: Call to undefined function add_filter() in /home2/csi/public_html/wp-content/plugins/csi_stats/csi_roster_process.php:4 Stack trace: #0 {main} thrown in /home2/csi/public_html/wp-content/plugins/csi_stats/csi_roster_process.php on line 15


/**
 * Plugin Name: CSI Stats
 * Plugin URI: https://courtsideindiana.com
 * Description: Stat Module
 * Version: 1.0
 */

//include("/home2/csi/public_html/resources/con.php");

add_filter('quform_post_process_10', function (array $result, Quform_Form $form) {
    $session = quform('session');
    $session->set('form_10', $form);

    return $result;
}, 10, 2);

add_action('wp', function () {
    if(!isset($_GET['submitted_form_csv']) || !function_exists('quform')) {
        return;
    }

    $session = quform('session');
    $form = $session->get('form_10');

    if(!$form instanceof Quform_Form) {
        die('Form not found');
    }

    var_dump($form->getValues());
    exit;
});

Here is the URL I’m redirecting to:
https://www.courtsideindiana.com/wp-content/plugins/csi_stats/csi_roster_process.php?submitted_form_csv

Be inspired. © 2020 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy