Home Forums Plugin Support WP User Frontend Pro Store the user IP in a custom field

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  Brk 4 years, 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #23685

    Brk
    Participant
    Post count: 29

    Hi

    I would like to store the user IP in a custom field. When user submits and updates the form.

    I am not a developer but i think this can be done with wpuf_add_post_after_insert and wpuf_add_post_after_update hooks to store $_SERVER[‘REMOTE_ADDR'] in a custom field.

    But i need your help very much ? Can you share an example action code ?

    Thank you

    #23790

    Sekander Badsha
    Member
    Post count: 2067

    Hello Brk,
    The hooks you have mentioned is correct. Here is the official WordPress documentation about “add_action” http://codex.wordpress.org/Function_Reference/add_action

    #23833

    Brk
    Participant
    Post count: 29

    Thanks Sekander. You are very helpfull..

    If some developer friends have a little code about this , and if they share here, i will be very happy.

    Thanks.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Store the user IP in a custom field’ is closed to new replies.