PHP code example of rareloop / wp-font-fout
1. Go to this page and download the library: Download rareloop/wp-font-fout 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/ */
rareloop / wp-font-fout example snippets
// functions.php
Rareloop\FontFout::init([
'PT Serif',
'Open Sans',
]);
// functions.php
Rareloop\FontFout::init(['PT Serif'], '_fonts_cached_in_browser', 60 * 60 * 24 * 30);