Skip to content

Instantly share code, notes, and snippets.

View Misplon's full-sized avatar

Andrew Misplon Misplon

  • SiteOrigin
View GitHub Profile
@Misplon
Misplon / fetch_google_fonts.php
Last active May 4, 2022 18:26
SiteOrigin Vantage Update Google Fonts Array
#!/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();