tables_to_repair
Filter HookDescription
Filters additional database tables to repair.Hook Information
File Location |
wp-admin/maint/repair.php
View on GitHub
|
Hook Type | Filter |
Line Number | 107 |
Hook Parameters
Type | Name | Description |
---|---|---|
string[]
|
$tables
|
Array of prefixed table names to be repaired. |
Usage Examples
Basic Usage
<?php
// Hook into tables_to_repair
add_filter('tables_to_repair', 'my_custom_filter', 10, 1);
function my_custom_filter($tables) {
// Your custom filtering logic here
return $tables;
}
Source Code Context
wp-admin/maint/repair.php:107
- How this hook is used in WordPress core
<?php
102 *
103 * @since 3.0.0
104 *
105 * @param string[] $tables Array of prefixed table names to be repaired.
106 */
107 $tables = array_merge( $tables, (array) apply_filters( 'tables_to_repair', array() ) );
108
109 // Loop over the tables, checking and repairing as needed.
110 foreach ( $tables as $table ) {
111 $check = $wpdb->get_row( "CHECK TABLE $table" );
112
PHP Documentation
<?php
/**
* Filters additional database tables to repair.
*
* @since 3.0.0
*
* @param string[] $tables Array of prefixed table names to be repaired.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-admin/maint/repair.php
Related Hooks
Related hooks will be displayed here in future updates.