PHP code example of pantheon-systems / wp-tls-compatibility-checker
1. Go to this page and download the library: Download pantheon-systems/wp-tls-compatibility-checker library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pantheon-systems / wp-tls-compatibility-checker example snippets
add_filter( 'pantheon.tls_checker.skip_urls', function( $skip_urls ) {
$skip_urls[] = 'https://example.com';
return $skip_urls;
} ) ;
add_filter( 'pantheon.tls_checker.additional_urls', function( $additional_urls ) {
$additional_urls[] = 'https://example.com';
return $additional_urls;
} ) ;
/**
* Plugin Name: TLS checker bad plugin
* Description: Makes a request against a known bad (non-TLS 1.2+) URL
* Version: 1.3
* Author: Pantheon Systems
*/
add_action( 'admin_init', function() {
print_r( wp_remote_get( 'https://tls-v1-1.badssl.com:1011/' ) );
});