Skip to content

Instantly share code, notes, and snippets.

@mt8 mt8/functions.php
Last active Apr 14, 2017

Embed
What would you like to do?
StaticPressとか使うとき用。非SSLWordPressで再構築するときにGravatarをSSLで取得するためのコード
<?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
You can’t perform that action at this time.