Last active
August 29, 2015 14:12
-
-
Save yiichou/9d791e2c0a1c703e0350 to your computer and use it in GitHub Desktop.
replace-google-fonts
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
<?php | |
/** | |
* Replace Google Fonts | |
* Use Qihoo 360 Open Fonts Service to replace Google's. | |
* | |
* @param $text | |
* @return mixed | |
*/ | |
function ohMyFont($text) | |
{ | |
return str_replace('//fonts.googleapis.com/', '//fonts.useso.com/', $text); | |
} | |
add_filter('style_loader_tag', 'ohMyFont', 1000, 1); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment