Hook into Media Library dialog from edit screen?
-
Anyone have tips on how to create a new button on the Edit Post/Page screens that would hook into the Media Library dialog?
For simplicity’s sake lets say I wanted to create a single text field, with a button next to it that opens the Media Library dialog, and when I select a media library item I want to insert that item’s title in the text field, and close the dialog.
I’m looking through the media library code (wp-admin/includes/media.php) and I don’t quite see the light. I see that I can add filter/action to affect the media_buttons() function but I’m not clear on what to alter; nor have I any clue what to do after that.
- The topic ‘Hook into Media Library dialog from edit screen?’ is closed to new replies.