shutdown action-hookWP 1.2.0

Fires just before PHP shuts down execution.

Usage

add_action( 'shutdown', 'wp_kama_shutdown_action' );

/**
 * Function for `shutdown` action-hook.
 * 
 * @return void
 */
function wp_kama_shutdown_action(){

	// action...
}

Changelog

Since 1.2.0 Introduced.

Where the hook is called

shutdown_action_hook()
shutdown
wp-includes/load.php 1102
do_action( 'shutdown' );

Where the hook is used in WordPress

wp-includes/default-filters.php 408
add_action( 'shutdown', 'wp_ob_end_flush_all', 1 );