It works locally without SSL.
I put http://localhost/wordpress in the “server url” options and it works.
It’s probably another plugin that transforms the url into https.
The code in the save only does the sanitize_url
When the client retrieves the “url (static private function sucw_call_server($api_call, $token, $username) )
I don’t make any changes to the saved url, I only add the parameters for the call to the server.
Just to be clear getting this SSL error:
2 2025-01-03 07:42:32 – ::1 – check-configuration – Called https://magicpractitioners.local/wp-json/sucw/v1/check-configuration error: cURL error 60: SSL certificate problem: self-signed certificate
Fairly this is common on Localhosts with non-signed SSL but never managed to resolve it.
Thanks
Sorry I didn’t understand the problem. You can theoretically disable it that way, but I haven’t been able to test it.
In functions.php
add_filter( ‘https_local_ssl_verify’, ‘__return_false’ );
add_filter( ‘https_ssl_verify’, ‘__return_false’ );