For security reasons, I have a need to make a small modification to WordPress so that no IP addresses are captured or stored in the database, nor shown on any pages.
I know that I can do this by means of the following statement:
$_SERVER["REMOTE_ADDR"] = "127.0.0.1";
However, I'm not sure where would be the best place to put this statement within the WordPress code. I want this to be done as early as possible within any and all paths through the code, so that all subsequent references to this variable will always be guaranteed to be set to 127.0.0.1. Could someone point me to the best place (or places) within the source code for me to put this statement?
On the other hand, if there is a better way to accomplish my goal of completely hiding IP addresses and not having them stored in the data base, please let me know.
Thank you very much, in advance.