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

Where the hook is used in WordPress

wp-admin/includes/class-wp-upgrader.php 909
add_action( 'shutdown', array( $this, 'restore_temp_backup' ) );
wp-admin/includes/class-wp-upgrader.php 926
add_action( 'shutdown', array( $this, 'delete_temp_backup' ), 100, 0 );
wp-includes/default-filters.php 412
add_action( 'shutdown', 'wp_ob_end_flush_all', 1 );
wp-includes/update.php 1099
add_action( 'shutdown', '_wp_delete_all_temp_backups' );