WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I found this script Wordpress Media Manager 3.5 - default link to

and it works fine for me. But my problem is, that I have a custom wp_editor on the front end where I want it to work, but I can't find a way to activate it on this site..

Here is the code:

add_action( 'load-post.php', 'wpse8170_media_popup_init' );
add_action( 'load-post-new.php', 'wpse8170_media_popup_init' );

which works fine in the wp backend media manager, but not in my custom wp_editor.

The URL to the wp_editor is: http://localhost/website.com/visitenkarten-setup/

And the page id is 360..

Do you have any idea how I could use the add_action on this page? Thank you!

share|improve this question
up vote 2 down vote accepted

In your theme's functions.php file, or the like:

add_action( 'your-custom-action', 'wpse8170_media_popup_init' );

In the page template used for the page in question:

do_action( 'your-custom-action' );
share|improve this answer
thank you very much! :) – Sebsemillia Mar 20 '13 at 15:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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