Last active
April 14, 2017 08:01
-
-
Save mt8/ad0cdaccb17d9d1ac8aa44aef41bbe6a to your computer and use it in GitHub Desktop.
StaticPressとか使うとき用。非SSLWordPressで再構築するときにGravatarをSSLで取得するためのコード
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 | |
function my_pre_get_avatar_data( $args, $id_or_email ) { | |
$args['scheme'] = 'https'; | |
return $args; | |
} | |
add_filter( 'pre_get_avatar_data', 'my_pre_get_avatar_data', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment