[ad_1]
Hi.
If I understand your problem correctly, you are using a Plugin from IT-Rechts-Kanzlei that updates your AGB automatically via a web form and you are seeking for a solution to whitelist the IP of their server, that automatically fills your webform that updates the AGB.
Unfortunately the plugin up to now doesn’t support whitelisting and I don’t see a solution like just updating functions.php.
I see the following possible solution:
- I will add this feature to the plugin as soon as I find some time for that, as it absolutely makes sense.
- If you feel comfortable with PHP, until then you can hack the plugin’s code to get a work-around. For instance you can change the code of the plugin’s file “class-stamp.php” in the plugin’s “includes”-folder from line 35 to 53 by wrapping the code of the __construct – function with a conditional check on the IP-address. ( But beware: This code-example is untested )
public function __construct()
{
if( $this->get_client_ip() !== '142.132.160.229' ){
...
}
}As soon as I publish the next version, you need to add the IP to the respective whitelist. And the “work-around” will be overwritten.
Cheers, Matthias
Hi Matthias,
thanks a lot for the hack! I’ll try it and debug if needed. No prob.
Thank you for the quick response and have a great day,
Tom
