after_db_upgrade
Action HookDescription
Fires on the next page load after a successful DB upgrade.Hook Information
File Location |
wp-admin/admin.php
View on GitHub
|
Hook Type | Action |
Line Number | 49 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into after_db_upgrade
add_action('after_db_upgrade', 'my_custom_function');
function my_custom_function() {
// Your custom code here
}
Source Code Context
wp-admin/admin.php:49
- How this hook is used in WordPress core
<?php
44 /**
45 * Fires on the next page load after a successful DB upgrade.
46 *
47 * @since 2.8.0
48 */
49 do_action( 'after_db_upgrade' );
50
51 } elseif ( ! wp_doing_ajax() && empty( $_POST )
52 && (int) get_option( 'db_version' ) !== $wp_db_version
53 ) {
54
PHP Documentation
<?php
/**
* Fires on the next page load after a successful DB upgrade.
*
* @since 2.8.0
*/
Quick Info
- Hook Type: Action
- Parameters: 0
- File: wp-admin/admin.php
Related Hooks
Related hooks will be displayed here in future updates.