Increase the number of related posts being displayed when using Jetpack

Increase the number of related posts being displayed when using Jetpack related posts module on child sites.

Snippet Type

Execute on Child Sites

Snippet

function jetpackme_more_related_posts( $options ) {
    $options['size'] = 6;
    return $options;
}
add_filter( 'jetpack_relatedposts_filter_options', 'jetpackme_more_related_posts' );