Ready to get started?Download WordPress


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

  1. usersubmittedpost-fan
    Posted 9 months 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 9 months 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.


You must log in to post.

About this Plugin

About this Topic