Last active
December 28, 2020 21:50
-
-
Save tyler-paulson/237ce80d72017f4934fbd7c85c8862f5 to your computer and use it in GitHub Desktop.
Retina-sized gravatar for header of Independent Publisher theme
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 independent_publisher_retina_header_gravatar($args) { | |
if(isset($args['default-image'])) { | |
$args['default-image'] = str_replace('?s=100', '?s=200', $args['default-image']); | |
} | |
return $args; | |
} | |
add_filter('independent_publisher_custom_header_args', 'independent_publisher_retina_header_gravatar'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment