shutdown_action_hook()WP 1.2.0

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() code WP 6.5.2

function shutdown_action_hook() {
	/**
	 * Fires just before PHP shuts down execution.
	 *
	 * @since 1.2.0
	 */
	do_action( 'shutdown' );

	wp_cache_close();
}