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 1280
do_action( 'shutdown' );

Where the hook is used in WordPress

wp-admin/includes/class-wp-upgrader.php 918
add_action( 'shutdown', array( $this, 'restore_temp_backup' ), 10, 0 );
wp-admin/includes/class-wp-upgrader.php 935
add_action( 'shutdown', array( $this, 'delete_temp_backup' ), 100, 0 );
wp-includes/default-filters.php 413
add_action( 'shutdown', 'wp_ob_end_flush_all', 1 );
wp-includes/update.php 1102
add_action( 'shutdown', '_wp_delete_all_temp_backups' );