Hi, I get many warnings on my functions.php file, line 9. This is the code:
add_filter('http_request_args', function($r, $url) {
$r['sslcertificates'] = ABSPATH . '/cacert.pem';
return $r;
});
Can you tell me why it causes errors and how I can fix it?
Hey DROR,
Thank you for using Enfold.
What is the actual warning or notification? What is the current PHP version?
Best regards,
Ismael
Hi,
Add a priority and the number of arguments.
add_filter('http_request_args', function($r, $url) {
$r['sslcertificates'] = ABSPATH . '/cacert.pem';
return $r;
}, 10, 2);
.. where 10 is the priority value and 2 is number of arguments ($r, $url).
// https://developer.wordpress.org/reference/hooks/http_request_args/
Best regards,
Ismael
OK, made the update in the functions file.
Thanks.
Hi bakbek,
Errors here are different and are not related to Enfold. They seem to be related to WooCommerce or some plugin.
Best regards,
Victoria