Skip to content

Instantly share code, notes, and snippets.

@samuelaguilera
Last active May 29, 2020 05:13
Show Gist options
  • Save samuelaguilera/0056d383e64d29ec856b1b38692cf26f to your computer and use it in GitHub Desktop.
Save samuelaguilera/0056d383e64d29ec856b1b38692cf26f to your computer and use it in GitHub Desktop.
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