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 have a function that kills the media buttons on certain custom post types. I want it to load whenever any post/ page edit page opens. What's the best action to hook this up to?

Thanks in advance.

share|improve this question
up vote 0 down vote accepted

Try the 'load-post.php' action.

share|improve this answer
Sweet. I love you. – mjjwatson Jul 9 '11 at 11:29

also try "load-post-new.php" for new pages

share|improve this answer

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.