PHP code example of zytzagoo / wp-google-fonts-optimizer
1. Go to this page and download the library: Download zytzagoo/wp-google-fonts-optimizer 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/ */
zytzagoo / wp-google-fonts-optimizer example snippets
add_filter( 'zwf_gfo_mode', function( $mode ) {
return 'markup';
});
add_filter( 'zwf_gfo_markup_type', function( $type ) {
return 'script';
});