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
.
Source
File: wp-includes/load.php
Changelog
Version | Description |
---|---|
1.2.0 | Introduced. |