Title: {$page_hook}
Published: April 25, 2014
Last modified: February 24, 2026

---

# do_action( “{$page_hook}” )

## In this article

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

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

Used to call the registered callback for a plugin screen.

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

This hook uses a dynamic hook name, `$page_hook`, which 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 ‘settings_page_pluginbasename’.

### 󠀁[See also](https://developer.wordpress.org/reference/hooks/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/page_hook/?output_format=md#source)󠁿

    ```php
    do_action( $page_hook );
    ```

[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#L264)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/admin.php#L264-L264)

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

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

## User Contributed Notes

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