I’m looking for a plugin or example of code that can intercept the save/publish event and verify that all external links within the post content have rel=”nofollow” attributes.
Is it possible to use add_filter or add_action on the post save/publish event?
I would try “wp_insert_post_data” filter.
Obviously needs work, just a PoC.