Title: load-page.php
Published: December 18, 2014

---

# do_action( ‘load-page.php’ )

## In this article

 * [More Information](https://developer.wordpress.org/reference/hooks/load-page-php/?output_format=md#more-information)
 * [Source](https://developer.wordpress.org/reference/hooks/load-page-php/?output_format=md#source)
 * [User Contributed Notes](https://developer.wordpress.org/reference/hooks/load-page-php/?output_format=md#user-contributed-notes)

[ Back to top](https://developer.wordpress.org/reference/hooks/load-page-php/?output_format=md#wp--skip-link--target)

## 󠀁[More Information](https://developer.wordpress.org/reference/hooks/load-page-php/?output_format=md#more-information)󠁿

Runs when an administration menu page is loaded. This action is not usually added
directly — see [Administration Menus](https://developer.wordpress.org/plugins/administration-menus/)
for more details of how to add admin menus. If you do want to use it directly, the
return value from `add_options_page` and similar functions gives you the (page) 
part of the action name.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/load-page-php/?output_format=md#source)󠁿

    ```php
    * Possible hook names include:
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/admin.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-admin/admin.php#L328)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/admin.php#L328-L328)

## 󠀁[User Contributed Notes](https://developer.wordpress.org/reference/hooks/load-page-php/?output_format=md#user-contributed-notes)󠁿

 1.   [Skip to note 2 content](https://developer.wordpress.org/reference/hooks/load-page-php/?output_format=md#comment-content-4340)
 2.    [Steven Lin](https://profiles.wordpress.org/stevenlinx/)  [  6 years ago  ](https://developer.wordpress.org/reference/hooks/load-page-php/#comment-4340)
 3.  [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fload-page-php%2F%23comment-4340)
     Vote results for this note: 2[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fload-page-php%2F%23comment-4340)
 4.  Examples migrated from Codex:
 5.  Example:
 6.      ```php
         add_action( 'admin_menu', 'test_load');
         function test_load() {
            $hook = add_management_page( 'Test', 'Test', 8, 'testload');
            print('load-'.$hook);exit;
            /*
                Result: load-tools_page_testload
            */
         }
         ```
     
 7.  Example:
 8.      ```php
         add_action( 'load-edit.php', 'post_listing_page' );
         function post_listing_page() {
             //this is the wp admin edit.php post listing page!
         }
         ```
     
 9.   [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fload-page-php%2F%3Freplytocom%3D4340%23feedback-editor-4340)

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fload-page-php%2F)
before being able to contribute a note or feedback.