This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php -q | |
<?php | |
/* To update the SiteOrigin Vantage Google Fonts array, insert this file fetch_google_fonts.php | |
into the inc/customizer directory along with a file named google-key.php containing your Google Fonts API key. | |
From the command line, navigate to inc/customizer and run `php ./fetch_google_fonts.php`. | |
Once done, remove the fetch_google_fonts.php and google-key.php file from the inc/customizer directory. */ | |
function get_data( $url ) { | |
$ch = curl_init(); |