Instantly share code, notes, and snippets.

Embed
What would you like to do?
Force WP certificate validation
<?php
// NOTE: THE CODE TO COPY/PASTE STARTS *BELOW* THIS LINE
// Force certificate validation. You need a valid certificate in the site, self generated certificates are NOT VALID.
add_filter( 'https_local_ssl_verify', '__return_true' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment