shutdown_action_hook()
Runs just before PHP shuts down execution.
Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.
Hooks from the function
Return
null
. Nothing (null).
Usage
shutdown_action_hook();
Changelog
Since 1.2.0 | Introduced. |
shutdown_action_hook() shutdown action hook code WP 6.7.2
function shutdown_action_hook() { /** * Fires just before PHP shuts down execution. * * @since 1.2.0 */ do_action( 'shutdown' ); wp_cache_close(); }