In wordpress, you use function.php file of the active theme to add custom filters which is why the above code should be added to that file.
This should disable ssl when connecting to the wordpress api for plugin info.
If there is a network security policy in place that prevent requests from being sent to the wp servers then the only option I can think of now if to use a proxy server.