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
?
Just found my answer. Those aren’t filenames but examples of the
load-(page)
action.