load-{$pagenow} WordPress Action Hook

The load-{$pagenow} hook is a hook that is called when a particular page is loaded. This hook can be used to perform any actions that need to be done when that page is loaded.

do_action( "load-{$pagenow}" ) #

Fires before a particular screen is loaded.


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’.


Top ↑

Source

File: wp-admin/admin.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
2.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.