I am seeking for help to find the action or hook in order to fire function insert into post in media library. I did create a new tab for my videos and would like to insert my converted video by clicking an a tag or button to embed video into the WordPress editor.

Please help thank you


The hook is media_send_to_editor.

From the source of core.

apply_filters (
    string $html,
    int $send_id, 
    array $attachment


Filter the HTML markup for a media item sent to the editor.

  • Welcome, that's the goal of WPSE. @JoT – bueltge Nov 19 '15 at 5:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.