PHP code example of themeplate / compatibility
1. Go to this page and download the library: Download themeplate/compatibility 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/ */
themeplate / compatibility example snippets
use ThemePlate\Compatibility;
( new Compatibility( '6.0', '8.0' ) )->setup( 'My Project' );
use ThemePlate\Compatibility;
$compatibility = new Compatibility( '5.0', '5.6' );
/* translators: %s package name */
$compatibility->message_header( 'Sorry! %s is not compatible.' );
/* translators: 1. __( 'Requires PHP %1$s or higher but currently running at %2$s', 'custom_domain' ) );