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

---

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

## In this article

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

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

Fires before a particular screen is loaded.

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

The load-* hook fires in a number of contexts. This hook is for core screens.

The dynamic portion of the hook name, `$pagenow`, is a global variable referring
to the filename of the current screen, such as ‘admin.php’, ‘post-new.php’ etc. 
A complete hook for the latter would be ‘load-post-new.php’.

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

    ```php
    do_action( "load-{$pagenow}" ); // 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#L390)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/admin.php#L390-L390)

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/load-pagenow/?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-pagenow%2F)
before being able to contribute a note or feedback.