wp_should_upgrade_global_tables
Filter HookDescription
Filters if upgrade routines should be run on global tables.Hook Information
File Location |
wp-admin/includes/upgrade.php
View on GitHub
|
Hook Type | Filter |
Line Number | 3797 |
Hook Parameters
Type | Name | Description |
---|---|---|
bool
|
$should_upgrade
|
Whether to run the upgrade routines on global tables. |
Usage Examples
Basic Usage
<?php
// Hook into wp_should_upgrade_global_tables
add_filter('wp_should_upgrade_global_tables', 'my_custom_filter', 10, 1);
function my_custom_filter($should_upgrade) {
// Your custom filtering logic here
return $should_upgrade;
}
Source Code Context
wp-admin/includes/upgrade.php:3797
- How this hook is used in WordPress core
<?php
3792 *
3793 * @since 4.3.0
3794 *
3795 * @param bool $should_upgrade Whether to run the upgrade routines on global tables.
3796 */
3797 return apply_filters( 'wp_should_upgrade_global_tables', $should_upgrade );
3798 }
PHP Documentation
<?php
/**
* Filters if upgrade routines should be run on global tables.
*
* @since 4.3.0
*
* @param bool $should_upgrade Whether to run the upgrade routines on global tables.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-admin/includes/upgrade.php
Related Hooks
Related hooks will be displayed here in future updates.