Title: load-{$page_hook}
Published: April 25, 2014
Last modified: May 20, 2026

---

# do_action( “load-{$page_hook}” )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/load-(page_hook)/?output_format=md#description)
    - [See also](https://developer.wordpress.org/reference/hooks/load-(page_hook)/?output_format=md#see-also)
 * [Source](https://developer.wordpress.org/reference/hooks/load-(page_hook)/?output_format=md#source)
 * [Changelog](https://developer.wordpress.org/reference/hooks/load-(page_hook)/?output_format=md#changelog)

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

Fires before a particular screen is loaded.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/load-(page_hook)/?output_format=md#description)󠁿

The load-* hook fires in a number of contexts. This hook is for plugin screens where
a callback is provided when the screen is registered.

The dynamic portion of the hook name, `$page_hook`, refers to a mixture of plugin
page information including:

 1. The page type. If the plugin page is registered as a submenu page, such as for 
    Settings, the page type would be ‘settings’. Otherwise the type is ‘toplevel’.
 2. A separator of ‘_page_’.
 3. The plugin basename minus the file extension.

Together, the three parts form the `$page_hook`. Citing the example above, the hook
name used would be ‘load-settings_page_pluginbasename’.

### 󠀁[See also](https://developer.wordpress.org/reference/hooks/load-(page_hook)/?output_format=md#see-also)󠁿

 * [get_plugin_page_hook()](https://developer.wordpress.org/reference/functions/get_plugin_page_hook/)

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

    ```php
    do_action( "load-{$page_hook}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    ```

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

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/load-(page_hook)/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.1.0](https://developer.wordpress.org/reference/since/2.1.0/) | Introduced. |

## User Contributed Notes

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