Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
shutdown_action_hook() WordPress Function
The shutdown_action_hook() function is called during the shutdown process. It is used to perform cleanup tasks such as saving data and cleaning up resources.
shutdown_action_hook() #
Runs just before PHP shuts down execution.
Source
File: wp-includes/load.php
function shutdown_action_hook() { /** * Fires just before PHP shuts down execution. * * @since 1.2.0 */ do_action( 'shutdown' ); wp_cache_close(); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
1.2.0 | Introduced. |