Add_filter code should generally be inserted to the functions.php file of your active theme, or better still the child theme so it won’t be overwritten when you update the theme.
* create a backup of the file first
** make sure you have access to the file other than through the WP dashboard (e.g. Filezilla or cPanel) so you can fix any issues that arise
*** place the code at the bottom of the file two lines below the last line of existing code
Ah, ok. Will stick it in my functions file.
That worked – thank you!
-
This reply was modified 7 years, 10 months ago by
pauly33.
I tried to put the “add_filter( ‘wpcf7_remote_ip_addr’, ‘wpcf7_anonymize_ip_addr’ );” command in the functions.php but doesn’t work.
Probably I put the line in the wrong position of the php file.
Someone could help me to find the right position?
This is my clean functions
Is It enough add this line to anonimaze all the IP’s?