User Submitted Posts
[resolved] How to disable "user_submit_ip"? (2 posts)

  1. usersubmittedpost-fan
    Posted 2 years ago #

    Hi Jeff,

    How are you? .. Want to start off by thanking you for making this plugin and for also actively updating and helping users of the plugin.

    Your plugin in the most important feature in my wordpress site. My wordpress site is like a petition site or complaint site where people can submit their complaints against organizations.

    I want to make sure that all users of my site are anonymous. I found that IP address of user who submitted a post is logged in the posts_meta table in the database as user_submit_ip.

    Is there a way to disable tracking of user_submit_ip in the database?

    I just don't want to store IP addresses of the post submitters.

    Thank you in advance for your help.


  2. Jeff Starr
    Plugin Author

    Posted 2 years ago #

    Yes there is a way, but it requires a modification to the core file, just change this line:

    update_post_meta($newPost, $usp_post_meta_SubmitterIp, htmlentities($authorIp, ENT_QUOTES, 'UTF-8'));

    ..to this:

    // update_post_meta($newPost, $usp_post_meta_SubmitterIp, htmlentities($authorIp, ENT_QUOTES, 'UTF-8'));

    Also, there is a Pro version of USP in the works that will include the option to disable IP tracking, just FYI.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • User Submitted Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic