• Since this plugin has the ability to add hidden fields, I was wondering if it was possible to include the IP of the visitor who is submitting the form, either via shortcode or JavaScript/jQuery.

    In a hidden field, it’s possible to add the title or id of the page (by using the_title or the_id) from which the visitor submits the form, so I was hoping something similar would be possible for an IP.

    Any help would be appreciated, thanks 🙂

    https://ww.wp.xz.cn/plugins/ajax-contact/

Viewing 1 replies (of 1 total)
  • Thread Starter sarahjadesigns

    (@sarahjadesigns)

    I’d like to add that I’ve been able to add a function to my theme which displays the visitor’s IP (see what I used here). This displays the IP when you use the shortcode [ show_ip ]. It works on pages and posts without a problem. But I can’t get it to work in the hidden field, either by typing it enclosed in single [ ] or double [ [ ] ] square brackets (the forum is doing funny stuff with displaying stuff between square brackets, hope this is clear).

Viewing 1 replies (of 1 total)

The topic ‘Get user IP’ is closed to new replies.