I have created a plugin which is a file manager and allows users to browse directories on the server using the wordpress CMS.
What I need is that when a user browses to a particular image and views the details, they can see an 'insert into post' button. I have tried looking at the code for the existing insert into post but it does not seem to work anywhere else.
Is there any function which can call/create an insert into post button or has anybody solved this issue before?
All help greatly appreciate.