shutdown
Action HookDescription
Fires just before PHP shuts down execution.Hook Information
File Location |
wp-includes/load.php
View on GitHub
|
Hook Type | Action |
Line Number | 1304 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into shutdown
add_action('shutdown', 'my_custom_function');
function my_custom_function() {
// Your custom code here
}
Source Code Context
wp-includes/load.php:1304
- How this hook is used in WordPress core
<?php
1299 /**
1300 * Fires just before PHP shuts down execution.
1301 *
1302 * @since 1.2.0
1303 */
1304 do_action( 'shutdown' );
1305
1306 wp_cache_close();
1307 }
1308
1309 /**
PHP Documentation
<?php
/**
* Fires just before PHP shuts down execution.
*
* @since 1.2.0
*/
Quick Info
- Hook Type: Action
- Parameters: 0
- File: wp-includes/load.php
Related Hooks
Related hooks will be displayed here in future updates.