Referral URL

Home Forums Quform WordPress Referral URL

This topic is: not resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36445

    We tried to create a Plugin which catch the referral url that but it does not work, since we don’t know how it works under the hood, we did it with what we found on the Documentation, but nothing happened.

    Code below:

    add_action(‘wp_loaded’, function () {
    $session = Quform::getService(‘session’);

    if ( ! $session->has(‘referrer’)) {
    $referrer = ! empty($_SERVER[‘HTTP_REFERER’]) ? $_SERVER[‘HTTP_REFERER’] : ‘Not set’;
    $session->set(‘referrer’, $referrer);
    }
    });

    add_filter(‘quform_element_value_referrer’, function ($value) {
    $session = Quform::getService(‘session’);

    if ($session->has(‘referrer’)) {
    $value = $session->get(‘referrer’);
    }

    return $value;
    });

    After we have tried to get the IP in a hidden field also here nothing happened and we are getting the email but without the IP

    #36448
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy