Plugin: How to insert image tag into post

I have the first revision of a plugin working. It opens an iframe with our web application, allows the user to log in, select images and submit metadata for those images to the WP plugin. The plugin then uploads them into the Media Library, attaching various associated metadata. The user can then select one or more of the uploaded images from the Media Library for insertion into their page or post.

I want to modify this so that instead of uploading the image into the Media Library, an image tag with the url directly to the image is inserted into the post. I am trying to figure out what code WordPress runs when a user selects the “Insert from URL” options on the “Add Media” screen.

Read more here:: Plugin: How to insert image tag into post

Leave a Reply

Your email address will not be published. Required fields are marked *