How to write a plugin that “listens” every time, an edit occurs?
Use the “save_post” action hook, which is triggered every time a post or page is created or updated. In the function called by the hook, you can check the post content for new iframes, and if found, replace the src attributes of iframe elements before they are saved to the database. Use the “the_content” filter … Read more