Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Some examples in WordPress' docs pass a filename to add_action rather than an action name. For example,

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

What are the valid filenames for the first argument in add_action?

share|improve this question
    
Just found my answer. Those aren't filenames but examples of the load-[filename.php] action. Source: codex.wordpress.org/Plugin_API/Action_Reference/load-(page) –  getWeberForStackExchange May 24 '12 at 17:11
    
Move the comment to an answer and accept it, then. :) –  moraleida May 24 '12 at 17:13
    
My reputation isn't high enough to do it immediately; have to wait an hour from the post time. :) Update: Actually I have to wait 8 hours. –  getWeberForStackExchange May 24 '12 at 18:08

1 Answer 1

up vote 0 down vote accepted

Just found my answer. Those aren't filenames but examples of the load-(page) action.

share|improve this answer

Your Answer

 
discard

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.