Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Functions to add to the functions.php to change "Top Posts" widget from Jetpack (part 2)
<?php
function jetpackcustom_changeimage($get_image_options){
$default = 150;
$get_image_options['avatar_size'] = $default;
$get_image_options['width'] = $default;
$get_image_options['height'] = $default;
return $get_image_options;
}
add_action( 'jetpack_top_posts_widget_image_options', 'jetpackcustom_changeimage' );
?>
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.