I'm using the classic editor and here are my default settings for images:
In a post, I want all inserted images to be linked to the medium size URL instead of the full sized URL, which appears to be how WP sets it when choosing link to 'Media File'.
Ideally, I want a way to set it for existing and future posts. So far I've found 2 possible ways:
$urlwith the medium size URL. This works for future images that are added to the posts but not for existing images.
the_contentfilter: This would work for existing posts but I'm not sure if I should go with this.
Is there a better approach out there, and which do you recommend?