Adding “ ” before the last word in multiple defined areas with a plugin

Drop in add_filter( 'the_content', 'widont' ); (and the same for the_excerpt if required).

This’ll apply the function to the post content in addition to the title (the_title).