shutdown WordPress Action Hook

The shutdown hook is one of the most important hooks in WordPress. It is called at the very end of the WordPress execution cycle, after all other plugins and theme functions have been executed. This hook is useful for performing any final actions before the user is redirected to the next page, such as saving data or cleaning up resources.

do_action( 'shutdown' ) #

Fires just before PHP shuts down execution.


More Information

Runs just before PHP shuts down execution.

This hook is called by shutdown_action_hook() and registered with PHP as a shutdown function by register_shutdown_function() in wp-settings.php.


Top ↑

Source

File: wp-includes/load.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
1.2.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.